Skip to content

Commit

Permalink
Misc cleanup
Browse files Browse the repository at this point in the history
- Remove errant copypasta from tildeCall.js
- Clean up spacing/comments
  • Loading branch information
wcjohnson committed Aug 6, 2017
1 parent ffb7ddb commit 7c5e20e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
5 changes: 3 additions & 2 deletions src/plugins/bangCall.js
Expand Up @@ -30,7 +30,8 @@ export default function(parser) {

// ASI, ignore impossible args
if (
(this.isLineBreak() && this.state.indentLevel <= bangIndentLevel) || !this.state.type.startsExpr
(this.isLineBreak() && this.state.indentLevel <= bangIndentLevel) ||
!this.state.type.startsExpr
) {
return this.finishNode(node, nodeType);
}
Expand Down Expand Up @@ -90,7 +91,7 @@ export default function(parser) {
return null;
};

// When subscripting, a newline always breaks up bang args.
// Subscripts to a bang call must appear at the arg indent level
pp.shouldUnwindBangSubscript = function() {
return this.isLineBreak() && (this.state.indentLevel <= this.state.bangUnwindLevel);
};
Expand Down
5 changes: 0 additions & 5 deletions src/plugins/tildeCall.js
Expand Up @@ -31,9 +31,4 @@ export default function(parser) {
return this.finishNode(node, "TildeCallExpression");
}
};

// When subscripting, a newline always breaks up bang args.
pp.shouldUnwindBangSubscript = function() {
return this.isLineBreak() && (this.state.indentLevel <= this.state.bangUnwindLevel);
};
}

0 comments on commit 7c5e20e

Please sign in to comment.