diff options
author | ydah <[email protected]> | 2024-11-11 23:24:34 +0900 |
---|---|---|
committer | Yudai Takada <[email protected]> | 2025-01-21 20:25:38 +0900 |
commit | 2b1db0faecf03d3fa1b7a1b102cc4c51aa962d5f (patch) | |
tree | cb57957b38dbade379d0c9eed53a75fe645a98e3 | |
parent | 3260b0b6471ae0d7c31c1047550d8cc8afbfe63c (diff) |
Remove unnecessary assignments to local variables in `f_arg_asgn`
Local variables are not reassigned and are not needed.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/12054
-rw-r--r-- | parse.y | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -6486,8 +6486,7 @@ f_norm_arg : f_bad_arg f_arg_asgn : f_norm_arg { - ID id = $1; - arg_var(p, id); + arg_var(p, $1); $$ = $1; } ; |