From 59d6ca0c95b827415d1d4886dfbb6191004b57ca Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Wed, 6 Jul 2022 07:46:58 +0300 Subject: [PATCH] js: remove duplicate match --- vlib/v/gen/js/js.v | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/vlib/v/gen/js/js.v b/vlib/v/gen/js/js.v index 2aa5cde636..f55ef531dd 100644 --- a/vlib/v/gen/js/js.v +++ b/vlib/v/gen/js/js.v @@ -959,11 +959,10 @@ fn (mut g JsGen) expr(node_ ast.Expr) { ast.LockExpr { g.gen_lock_expr(node) } - ast.Nil {} - ast.NodeError {} ast.Nil { g.write('null') } + ast.NodeError {} ast.None { g.write('none__') }