Skip to content

Commit

Permalink
speed up has_parens() (#3014)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexlamsl committed Mar 23, 2018
1 parent 12985d8 commit b1410be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/output.js
Expand Up @@ -576,7 +576,7 @@ function OutputStream(options) {
indentation : function() { return indentation },
current_width : function() { return current_col - indentation },
should_break : function() { return options.width && this.current_width() >= options.width },
has_parens : function() { return OUTPUT.slice(-1) == "(" },
has_parens : function() { return OUTPUT[OUTPUT.length - 1] == "(" },
newline : newline,
print : print,
space : space,
Expand Down

0 comments on commit b1410be

Please sign in to comment.