Commit fc14feee
fc14feeef3dbMerged
Richard Ramsden <[email protected]> · 6 months ago · 1 file · ~1 modified
Description
Remove empty if conditions
Co-Authored-By: Claude Opus 4.7 (1M context) [email protected]
Details
- Commit
- fc14feeef3db
- Parent
- 995f89809716
spinel_codegen.rbmodifiedView file
@@ -7111,10 +7111,7 @@
71117111
@needs_gc = 171127112
@needs_str_array = 171137113
end7114-
if t == "InterpolatedStringNode"7115-
end7116-
if t == "SymbolNode"7117-
end7114+
71187115
if t == "GlobalVariableWriteNode"71197116
gname = @nd_name[nid]71207117
if gname != "$stderr" && gname != "$stdout" && gname != "$?"@@ -7184,9 +7181,8 @@
71847181
end71857182
end71867183
end7187-
end7188-
if mname == "[]"71897184
end7185+
71907186
if mname == "new"71917187
if @nd_receiver[nid] >= 071927188
if @nd_type[@nd_receiver[nid]] == "ConstantReadNode"@@ -7298,10 +7294,7 @@
72987294
rn = @nd_name[@nd_receiver[nid]]72997295
if rn == "File"73007296
@needs_file_io = 17301-
if mname == "join"7302-
end7303-
if mname == "basename"7304-
end7297+
73057298
end73067299
end73077300
end