Skip to content
Snippets Groups Projects
Commit f2ddcda8 authored by Maxim Belkin's avatar Maxim Belkin
Browse files

Fix style (Convert if-elsif to case-when)

parent c61aba4e
No related branches found
No related tags found
No related merge requests found
......@@ -15,9 +15,10 @@ class Formula
# Ex. 1: "libONE.so.1"
# Ex. 2: %r{(libONE|libTWO)\.so}
self.class.allowed_missing_libraries.any? do |x|
if x.is_a? Regexp
case x
when Regexp
x.match? lib
elsif x.is_a? String
when String
lib.include? x
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment