mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-29 01:56:12 +01:00
style(eslint): match operator-linebreak preferences
This commit is contained in:
committed by
Julian Lam
parent
89c025d102
commit
ba619c7ec8
@@ -34,10 +34,10 @@ module.exports = function (Plugins) {
|
||||
var method;
|
||||
|
||||
if (Object.keys(Plugins.deprecatedHooks).includes(data.hook)) {
|
||||
winston.warn('[plugins/' + id + '] Hook `' + data.hook + '` is deprecated, '
|
||||
+ (Plugins.deprecatedHooks[data.hook]
|
||||
? 'please use `' + Plugins.deprecatedHooks[data.hook] + '` instead.'
|
||||
: 'there is no alternative.'
|
||||
winston.warn('[plugins/' + id + '] Hook `' + data.hook + '` is deprecated, ' +
|
||||
(Plugins.deprecatedHooks[data.hook] ?
|
||||
'please use `' + Plugins.deprecatedHooks[data.hook] + '` instead.' :
|
||||
'there is no alternative.'
|
||||
));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user