-
Notifications
You must be signed in to change notification settings - Fork 3
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
(method.arity + args.size == 0)
???
#56
Comments
tagliala
changed the title
Feb 27, 2024
method.arity + args.size == 0
???(method.arity + args.size == 0)
???
tagliala
added a commit
that referenced
this issue
Feb 27, 2024
Merged
tagliala
added a commit
that referenced
this issue
Feb 27, 2024
Refine method argument check for clarity: Both `(method.arity + args.size == 0)` and `(method.arity + args.size) == 0` are equivalent due to operator precedence, but the latter is preferred for improved readability. Close #56
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Because of operator precedence, this is the same as
(method.arity + args.size) == 0
, but it is confusinghawk/lib/hawk/model/proxy.rb
Line 101 in 3d284bd
The text was updated successfully, but these errors were encountered: