Skip to content

Conversation

clwy-cn
Copy link

@clwy-cn clwy-cn commented Mar 17, 2025

image
修复如上问题

rescue Exception => e
raise RedisException.new(e.message)
ensure
redis.close if redis
Copy link
Member

Choose a reason for hiding this comment

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

redis&.close

raise RedisException.new(e.message)
ensure
redis.close
redis = nil
Copy link
Member

Choose a reason for hiding this comment

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

Not need this

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

Successfully merging this pull request may close these issues.

2 participants