forked from daren.hsu/line_push
update
This commit is contained in:
Generated
Vendored
+1
-1
@@ -26,7 +26,7 @@ var _default = ({
|
||||
const id = t.cloneNode(path.parent.id);
|
||||
const binding = path.scope.getBinding(id.name); // if the binding gets reassigned anywhere, rename it
|
||||
|
||||
if (binding.constantViolations.length) {
|
||||
if (binding == null ? void 0 : binding.constantViolations.length) {
|
||||
path.scope.rename(id.name);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user