mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-04 03:21:18 +01:00
ESlint keyword-spacing, no-multi-spaces
This commit is contained in:
@@ -160,7 +160,7 @@ module.exports = function (Plugins) {
|
||||
next.apply(null, arguments);
|
||||
}
|
||||
});
|
||||
} catch(err) {
|
||||
} catch (err) {
|
||||
winston.error('[plugins] Error executing \'' + hook + '\' in plugin \'' + hookObj.id + '\'');
|
||||
winston.error(err);
|
||||
clearTimeout(timeoutId);
|
||||
|
||||
@@ -140,7 +140,7 @@ module.exports = function (Plugins) {
|
||||
} else {
|
||||
callback();
|
||||
}
|
||||
} catch(err) {
|
||||
} catch (err) {
|
||||
winston.error(err.stack);
|
||||
winston.warn('[plugins] Unable to parse library for: ' + pluginData.id);
|
||||
callback();
|
||||
@@ -301,7 +301,7 @@ module.exports = function (Plugins) {
|
||||
pluginData.repository = packageData.repository;
|
||||
pluginData.nbbpm = packageData.nbbpm;
|
||||
pluginData.path = pluginPath;
|
||||
} catch(err) {
|
||||
} catch (err) {
|
||||
var pluginDir = pluginPath.split(path.sep);
|
||||
pluginDir = pluginDir[pluginDir.length - 1];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user