Skip to content

Conversation

@martingregoire
Copy link
Contributor

@martingregoire martingregoire commented Jan 13, 2023

Fixes the following deprecation warning when using Redis 4.8.0:

Redis#sadd will always return an Integer in Redis 5.0.0.
Use Redis#sadd? instead.

As the return value of redis.sadd is not used, we can simply replace the .sadd call with .sadd?.

see

Fixes the following deprecation warning when using Redis 4.8.0:

```
Redis#sadd will always return an Integer in Redis 5.0.0.
Use Redis#sadd? instead.
```

As the return value of `redis.sadd` is not used, we can simply replace
the `.sadd` call with `.sadd?`.

see https://github.com/redis/redis-rb/blob/4.x/CHANGELOG.md#480
see splitrb#700
Copy link
Member

@andrehjr andrehjr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants