From 40aab69ed0c05a9326f0c0b1c0f84ede75916c32 Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Tue, 15 Sep 2015 06:18:15 +0100 Subject: [PATCH] remove weird acorn conditional formatting --- src/parser/lval.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/parser/lval.js b/src/parser/lval.js index 07e4db70db..cb8cae285a 100644 --- a/src/parser/lval.js +++ b/src/parser/lval.js @@ -120,8 +120,11 @@ pp.parseBindingAtom = function () { pp.parseBindingList = function (close, allowEmpty, allowTrailingComma) { var elts = [], first = true; while (!this.eat(close)) { - if (first) first = false; - else this.expect(tt.comma); + if (first) { + first = false; + } else { + this.expect(tt.comma); + } if (allowEmpty && this.match(tt.comma)) { elts.push(null); } else if (allowTrailingComma && this.eat(close)) {