Skip to content

Commit

Permalink
Merge 9d00ceb into 62652c1
Browse files Browse the repository at this point in the history
  • Loading branch information
massy22 committed Aug 16, 2017
2 parents 62652c1 + 9d00ceb commit 433379b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mock_redis/zset_methods.rb
Expand Up @@ -308,7 +308,7 @@ def looks_like_float?(x)
end

def assert_scorey(value, message = 'ERR value is not a valid float')
return if value =~ /\(?(\-|\+)inf/
return if value =~ /(\-|\+)?inf/

value = $1 if value.to_s =~ /\((.*)/
unless looks_like_float?(value)
Expand Down

0 comments on commit 433379b

Please sign in to comment.