Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b73cdc7

Browse files
committed
Update wrap-warning-with-env-check.js
1 parent 5ddb7a0 commit b73cdc7

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

scripts/babel/wrap-warning-with-env-check.js

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,8 @@ module.exports = function(babel, options) {
5050
newNode[SEEN_SYMBOL] = true;
5151
path.replaceWith(
5252
t.ifStatement(
53-
DEV_EXPRESSION,
54-
t.blockStatement([
55-
t.ifStatement(
56-
t.unaryExpression('!', condition),
57-
t.expressionStatement(newNode)
58-
),
59-
])
53+
t.unaryExpression('!', condition),
54+
t.expressionStatement(newNode)
6055
)
6156
);
6257
}

0 commit comments

Comments
 (0)