Delete unnecessary check

This commit is contained in:
Justin Ridgewell
2017-06-04 01:49:07 -04:00
parent ef87acc389
commit a62cb9281e

View File

@@ -84,9 +84,6 @@ export default function ({ types: t }) {
const replace = path.find((path) => {
const { parentPath } = path;
if (parentPath.isStatement()) {
return true;
}
if (path.key == "left" && parentPath.isAssignmentExpression()) {
return false;
@@ -100,6 +97,7 @@ export default function ({ types: t }) {
if (path.key == "argument" && parentPath.isUnaryExpression({ operator: "delete" })) {
return false;
}
return true;
});