mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-07 14:35:47 +01:00
chore: eslint prefer-template
This commit is contained in:
committed by
Julian Lam
parent
4ee0f1459d
commit
707b55b6a5
@@ -143,7 +143,7 @@ Logger.prepare_io_string = function (_type, _uid, _args) {
|
||||
* The format is: io: <uid> <event> <args>
|
||||
*/
|
||||
try {
|
||||
return 'io: ' + _uid + ' ' + _type + ' ' + util.inspect(Array.prototype.slice.call(_args), { depth: 3 }) + '\n';
|
||||
return `io: ${_uid} ${_type} ${util.inspect(Array.prototype.slice.call(_args), { depth: 3 })}\n`;
|
||||
} catch (err) {
|
||||
winston.info('Logger.prepare_io_string: Failed', err);
|
||||
return 'error';
|
||||
|
||||
Reference in New Issue
Block a user