fix: no need to pass in empty Set in deprecated hooks

This commit is contained in:
Julian Lam
2022-06-15 13:37:54 -04:00
parent c7fa73b163
commit 3a015eb8e3
2 changed files with 4 additions and 5 deletions

View File

@@ -129,7 +129,7 @@ Plugins.reload = async function () {
// Deprecation notices
Plugins.hooks._deprecated.forEach((deprecation, hook) => {
if (!deprecation.affected.size) {
if (!deprecation.affected || !deprecation.affected.size) {
return;
}