Skip to content

Commit

Permalink
can-lehmann#115 Mild loc reduction
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippMDoerner committed Jun 22, 2024
1 parent 793bd88 commit 5eba35e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions owlkettle/guidsl.nim
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,7 @@ proc gen(node: Node, stmts, parent: NimNode) =
for child in node.children:
child.gen(body, name)

let hasStateRef = not node.stateRef.isNil()
if hasStateRef:
if not node.stateRef.isNil():
let refVar = node.stateRef
let refAssignment = quote do:
`name`.stateRef = `refVar`
Expand Down

0 comments on commit 5eba35e

Please sign in to comment.