Skip to content

Commit 77b3325

Browse files
committed
Reassure linter
1 parent c2994ee commit 77b3325

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

acorn/src/expression.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ pp.parseMaybeConditional = function(forInit, refDestructuringErrors) {
167167
let startPos = this.start, startLoc = this.startLoc
168168
let expr = this.parseExprOps(forInit, refDestructuringErrors)
169169
if (this.checkExpressionErrors(refDestructuringErrors)) return expr
170-
if (!(expr.type == "ArrowFunctionExpression" && expr.start == startPos) && this.eat(tt.question)) {
170+
if (!(expr.type === "ArrowFunctionExpression" && expr.start === startPos) && this.eat(tt.question)) {
171171
let node = this.startNodeAt(startPos, startLoc)
172172
node.test = expr
173173
node.consequent = this.parseMaybeAssign()

0 commit comments

Comments
 (0)