Update wrap-warning-with-env-check.js

This commit is contained in:
Laura González
2019-12-05 17:57:45 +00:00
parent 5ddb7a01c6
commit b73cdc72df
+2 -7
View File
@@ -50,13 +50,8 @@ module.exports = function(babel, options) {
newNode[SEEN_SYMBOL] = true;
path.replaceWith(
t.ifStatement(
DEV_EXPRESSION,
t.blockStatement([
t.ifStatement(
t.unaryExpression('!', condition),
t.expressionStatement(newNode)
),
])
t.unaryExpression('!', condition),
t.expressionStatement(newNode)
)
);
}