Skip to content

Commit

Permalink
Cleanup call
Browse files Browse the repository at this point in the history
  • Loading branch information
jridgewell committed Apr 26, 2019
1 parent bdab9f8 commit b337a54
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/language-js/needs-parens.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,14 +104,7 @@ function needsParens(path, options) {

// Closure compiler requires that type casted expressions to be surrounded by
// parentheses.
if (
hasClosureCompilerTypeCastComment(
options.originalText,
path,
options.locStart,
options.locEnd
)
) {
if (hasClosureCompilerTypeCastComment(options.originalText, path)) {
return true;
}

Expand Down

0 comments on commit b337a54

Please sign in to comment.