mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-13 09:25:45 +01:00
fix: no need to pass in empty Set in deprecated hooks
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user