Skip to content

Commit

Permalink
check nil
Browse files Browse the repository at this point in the history
Signed-off-by: George Lemon <[email protected]>
  • Loading branch information
georgelemon committed Feb 27, 2024
1 parent 3f55d45 commit f0889c3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/tim/engine/compilers/html.nim
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,7 @@ proc evalCmd(c: var HtmlCompiler, node: Node, scopetables: var seq[ScopeTable]):
proc infixEvaluator(c: var HtmlCompiler, lhs, rhs: Node,
infixOp: InfixOp, scopetables: var seq[ScopeTable]): bool =
# Evaluates comparison expressions
if unlikely(lhs == nil or rhs == nil): return
case infixOp:
of EQ:
case lhs.nt:
Expand Down

0 comments on commit f0889c3

Please sign in to comment.