drop unnecessary check, because typeof(null)
already is "object", excluded in the first guard
This commit is contained in:
parent
049f178806
commit
06dbebd168
1 changed files with 2 additions and 2 deletions
|
@ -967,8 +967,8 @@ function mkLogEmitter(minLevel) {
|
||||||
} else {
|
} else {
|
||||||
msgArgs = Array.prototype.slice.call(args, 1);
|
msgArgs = Array.prototype.slice.call(args, 1);
|
||||||
}
|
}
|
||||||
} else if (typeof (args[0]) !== 'object' && args[0] !== null ||
|
} else if (typeof (args[0]) !== 'object' ||
|
||||||
Array.isArray(args[0])) {
|
Array.isArray(args[0])) {
|
||||||
// `log.<level>(msg, ...)`
|
// `log.<level>(msg, ...)`
|
||||||
fields = null;
|
fields = null;
|
||||||
msgArgs = Array.prototype.slice.call(args);
|
msgArgs = Array.prototype.slice.call(args);
|
||||||
|
|
Loading…
Reference in a new issue