lib/pod/command/keys/rm.rb in cocoapods-keys-2.0.0 vs lib/pod/command/keys/rm.rb in cocoapods-keys-2.0.1
- old
+ new
@@ -79,12 +79,12 @@
end
end
def matches(keys)
if @key_name.include? '*'
- return keys.select { |e| e =~ create_regex(@key_name) }
+ keys.select { |e| e =~ create_regex(@key_name) }
else
- return keys.select { |e| e == @key_name }
+ keys.select { |e| e == @key_name }
end
end
def create_regex(pattern)
regex_str = "^#{pattern.gsub('*', '.*')}$"