drop unnecessary check, because typeof(null) already is "object", excluded in the first guard

This commit is contained in:
Trent Mick 2016-10-18 13:36:33 -07:00
parent 049f178806
commit 06dbebd168

View file

@ -967,7 +967,7 @@ function mkLogEmitter(minLevel) {
} else {
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])) {
// `log.<level>(msg, ...)`
fields = null;