...and remove that crazy abomination

This commit is contained in:
weshatheleopard 2015-03-08 13:40:43 -05:00
parent cfc38b30a1
commit f030cdadb8
1 changed files with 1 additions and 3 deletions

View File

@ -14,9 +14,7 @@ module Zip
end end
def find_entry(entry, case_sensitively = true) def find_entry(entry, case_sensitively = true)
return @entry_set[to_key(entry)] if case_sensitively @entry_set[to_key(entry)]
entry = @entry_set.find { |k, _| k.downcase == to_key(entry).downcase }
entry.last if entry
end end
def <<(entry) def <<(entry)