mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-29 01:56:12 +01:00
isArray is enough
This commit is contained in:
@@ -352,7 +352,7 @@ var fs = require('fs'),
|
||||
|
||||
var hookList = Plugins.loadedHooks[hook];
|
||||
|
||||
if (hookList && Array.isArray(hookList)) {
|
||||
if (Array.isArray(hookList)) {
|
||||
// if (global.env === 'development') winston.info('[plugins] Firing hook: \'' + hook + '\'');
|
||||
var hookType = hook.split(':')[0];
|
||||
switch (hookType) {
|
||||
|
||||
Reference in New Issue
Block a user