Skip to content

Commit

Permalink
Merge pull request #53 from franee/master
Browse files Browse the repository at this point in the history
Fixed nil error on enumerator
  • Loading branch information
snmaynard authored Nov 10, 2016
2 parents 94ef83e + f7773fe commit 5b0dc04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion redis-audit.rb
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def group_key(key, type)
length_of_best_match = 0
threshold = key.length / 3
matching_portion = nil
key_codepoints = key.codepoints
key_codepoints = key.codepoints.to_a

@keys.keys.each do |current_key|
next if matching_key && !current_key.start_with?(matching_portion) # we know it wont be longer
Expand Down

0 comments on commit 5b0dc04

Please sign in to comment.