Skip to content

Commit

Permalink
use result for return
Browse files Browse the repository at this point in the history
  • Loading branch information
choltreppe committed Nov 5, 2023
1 parent 1869948 commit 2a246bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion karax/karaxdsl.nim
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ proc handleNoRedrawPragma(call: NimNode, tmpContext, name, anon: NimNode): NimNo
if hasNoRedrawPragma:
return newCall(ident"addEventHandlerNoRedraw", tmpContext,
newDotExpr(bindSym"EventKind", name), anon)
call
result = call

proc tcall2(n, tmpContext: NimNode): NimNode =
# we need to distinguish statement and expression contexts:
Expand Down

0 comments on commit 2a246bf

Please sign in to comment.