remove unnecessary if statement (#18792)
This commit is contained in:
parent
06ff0e9624
commit
905fae51f6
1 changed files with 6 additions and 6 deletions
|
|
@ -434,7 +434,7 @@ proc transformYield(c: PTransf, n: PNode): PNode =
|
|||
else:
|
||||
# we need to introduce new local variables:
|
||||
result.add(introduceNewLocalVars(c, c.transCon.forLoopBody))
|
||||
if result.len > 0:
|
||||
|
||||
for idx in 0 ..< result.len:
|
||||
var changeNode = result[idx]
|
||||
changeNode.info = c.transCon.forStmt.info
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue