From 9199ab584667357122637df49eb96919b0a04eb8 Mon Sep 17 00:00:00 2001 From: "Alex Lam S.L" Date: Sun, 20 Oct 2019 15:19:19 +0800 Subject: minor tweaks (#3502) --- lib/output.js | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) (limited to 'lib/output.js') diff --git a/lib/output.js b/lib/output.js index b9d8a137..d59176c3 100644 --- a/lib/output.js +++ b/lib/output.js @@ -91,13 +91,11 @@ function OutputStream(options) { comment_filter = function(comment) { return comment.type != "comment5" && comments.test(comment.value); }; - } - else if (typeof comments === "function") { + } else if (typeof comments === "function") { comment_filter = function(comment) { return comment.type != "comment5" && comments(this, comment); }; - } - else if (comments === "some") { + } else if (comments === "some") { comment_filter = is_some_comments; } else { // NOTE includes "all" option comment_filter = return_true; @@ -643,8 +641,7 @@ function OutputStream(options) { var self = this, generator = self._codegen; if (self instanceof AST_Scope) { active_scope = self; - } - else if (!use_asm && self instanceof AST_Directive && self.value == "use asm") { + } else if (!use_asm && self instanceof AST_Directive && self.value == "use asm") { use_asm = active_scope; } function doit() { @@ -1043,11 +1040,9 @@ function OutputStream(options) { return; } b = b.alternative; - } - else if (b instanceof AST_StatementWithBody) { + } else if (b instanceof AST_StatementWithBody) { b = b.body; - } - else break; + } else break; } force_statement(self.body, output); } -- cgit v1.2.3