Skip to content

Commit

Permalink
Merge pull request #1137 from tgxworld/fix_deprecation_note
Browse files Browse the repository at this point in the history
  • Loading branch information
byroot committed Aug 24, 2022
2 parents 4e9d73d + a8dd1d8 commit 9edb204
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/redis/commands/sets.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def sadd?(key, member)
def srem(key, member)
block = if Redis.sadd_returns_boolean && !member.is_a?(Array)
::Redis.deprecate!(
"Redis#sadd will always return an Integer in Redis 5.0.0. Use Redis#sadd? instead." \
"Redis#srem will always return an Integer in Redis 5.0.0. Use Redis#srem? instead." \
"(called from: #{caller(1, 1).first})"
)
Boolify
Expand Down

0 comments on commit 9edb204

Please sign in to comment.