-
Notifications
You must be signed in to change notification settings - Fork 14
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
Remove assignments in conditionals #31
Comments
I'll clean some of those up. |
Merged
I'm happy to take a look. |
If there are any you can find and resolve @BackstreetCultist feel free. Quite a few were cleaned in #37 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Assignments in conditionals while fun in the hackery sense tends to muddy logic clarity and tends to hide bugs.
The above code is straight forward enough, however, if
victim
get used further down the method, it's hard to see were victim gets assigned.We should consider removing assignments from conditionals.
The text was updated successfully, but these errors were encountered: