use any? instead

This commit is contained in:
xiaojian cai 2013-01-10 09:16:09 +08:00
parent adba101734
commit c627cd3519
1 changed files with 1 additions and 1 deletions

View File

@ -328,7 +328,7 @@ module Jekyll
end
def glob_include?(exps, e)
!(exps.index { |exp| File.fnmatch?(exp, e) }).nil?
exps.any? { |exp| File.fnmatch?(exp, e) })
end
# Get the implementation class for the given Converter.