Skip to content

Commit 252f9fd

Browse files
committed
fix: unregister if update invalid
1 parent 6387b34 commit 252f9fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hooks/updates.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ export function validate(plugin) {
104104
if (existing.version !== plugin.version) {
105105
return existing;
106106
}
107-
pendingUpdates.delete(key);
107+
unregister(plugin);
108108
}
109109
return false;
110110
}

0 commit comments

Comments
 (0)