Skip to content

Commit

Permalink
Update lib/kredis/types/ordered_set.rb
Browse files Browse the repository at this point in the history
Co-authored-by: Lewis Buckley <[email protected]>
  • Loading branch information
EduardoAntequera and lewispb authored Aug 23, 2023
1 parent f1fd5a5 commit a4378b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/kredis/types/ordered_set.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def remove(*elements)
end

def include?(element)
zrank(type_to_string(element, typed)).present?
!!zscore(type_to_string(element, typed))
end

def prepend(elements)
Expand Down

0 comments on commit a4378b8

Please sign in to comment.