Remove unnecessary assignments to local variables in strings
Local variables are not reassigned and are not needed.
This commit is contained in:
parent
5d6f76cf6e
commit
3260b0b647
Notes:
git
2025-01-21 11:25:55 +00:00
11
parse.y
11
parse.y
@ -5927,14 +5927,11 @@ literal : numeric
|
|||||||
|
|
||||||
strings : string
|
strings : string
|
||||||
{
|
{
|
||||||
NODE *node = $1;
|
if (!$1) {
|
||||||
if (!node) {
|
$$ = NEW_STR(STRING_NEW0(), &@$);
|
||||||
node = NEW_STR(STRING_NEW0(), &@$);
|
} else {
|
||||||
|
$$ = evstr2dstr(p, $1);
|
||||||
}
|
}
|
||||||
else {
|
|
||||||
node = evstr2dstr(p, node);
|
|
||||||
}
|
|
||||||
$$ = node;
|
|
||||||
/*% ripper: $:1 %*/
|
/*% ripper: $:1 %*/
|
||||||
}
|
}
|
||||||
;
|
;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user