From 71f8ed05cf57fa85f2bcb4934ed3caad75316d54 Mon Sep 17 00:00:00 2001 From: George Gensure Date: Mon, 14 Dec 2015 13:14:07 -0500 Subject: [PATCH] Fix extraneous semicolon on inverted sections Semicolon termination of an 'if' block for inverted sections can cause errors under jshint and other linting programs, and is unnecessary. --- lib/compiler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/compiler.js b/lib/compiler.js index 92774d6..65b1263 100644 --- a/lib/compiler.js +++ b/lib/compiler.js @@ -338,7 +338,7 @@ '^': function(node, context) { context.code += 'if(!t.s(t.' + chooseMethod(node.n) + '("' + esc(node.n) + '",c,p,1),c,p,1,0,0,"")){'; Hogan.walk(node.nodes, context); - context.code += '};'; + context.code += '}'; }, '>': createPartial,