refactor: change undefined to void 0
This commit is contained in:
committed by
Justin Ridgewell
parent
3faca62a77
commit
a9d8040c0f
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user