refactor: change undefined to void 0

This commit is contained in:
Sven SAULEAU
2017-05-29 18:57:57 +02:00
committed by Justin Ridgewell
parent 3faca62a77
commit a9d8040c0f
5 changed files with 11 additions and 11 deletions

View File

@@ -1,5 +1,5 @@
export default function ({ types: t }) {
const nilIdentifier = t.identifier("undefined");
const nilIdentifier = t.unaryExpression("void", t.numericLiteral(0));
function setOptionalTransformed(node) {
t.assertMemberExpression(node); // Dev