Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning on #not_nil! usage #284

Closed
Sija opened this issue Oct 29, 2022 · 0 comments · Fixed by #288
Closed

Warning on #not_nil! usage #284

Sija opened this issue Oct 29, 2022 · 0 comments · Fixed by #288
Assignees
Milestone

Comments

@Sija
Copy link
Member

Sija commented Oct 29, 2022

Object#not_nil! shouldn't rly be used and is considered as a code smell.
Assigning to a local variable is preferable.
Exceptions as always, can be excluded if desired.

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

Successfully merging a pull request may close this issue.

1 participant