diff --git a/lib/bunyan.js b/lib/bunyan.js index 5442826..cf60fea 100644 --- a/lib/bunyan.js +++ b/lib/bunyan.js @@ -967,8 +967,8 @@ function mkLogEmitter(minLevel) { } else { msgArgs = Array.prototype.slice.call(args, 1); } - } else if (typeof (args[0]) !== 'object' && args[0] !== null || - Array.isArray(args[0])) { + } else if (typeof (args[0]) !== 'object' || + Array.isArray(args[0])) { // `log.(msg, ...)` fields = null; msgArgs = Array.prototype.slice.call(args);