babel-helper-remove-or-void
Advanced tools
Comparing version 0.4.0-alpha.6546ad11 to 0.4.0-alpha.caaefb4c
@@ -1,3 +0,1 @@ | ||
"use strict"; | ||
module.exports = function (t) { | ||
@@ -8,8 +6,10 @@ // If we can't remove the expression we'll just replace it with an empty statement. | ||
// with the expression statement instead. | ||
if (path.parentPath.isExpressionStatement({ expression: path.node })) { | ||
if (path.parentPath.isExpressionStatement({ | ||
expression: path.node | ||
})) { | ||
path = path.parentPath; | ||
} | ||
} // If we are working with a variable declarator and there is only one then | ||
// we need to look at the parent. | ||
// If we are working with a variable declarator and there is only one then | ||
// we need to look at the parent. | ||
if (path.isVariableDeclarator() && path.parent.declarations[0] === path.node && path.parent.declarations.length === 1) { | ||
@@ -16,0 +16,0 @@ path = path.parentPath; |
{ | ||
"name": "babel-helper-remove-or-void", | ||
"version": "0.4.0-alpha.6546ad11", | ||
"version": "0.4.0-alpha.caaefb4c", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1380