Skip to content

Commit

Permalink
drop unnecessary check, because typeof(null) already is "object", e…
Browse files Browse the repository at this point in the history
…xcluded in the first guard
  • Loading branch information
trentm committed Oct 18, 2016
1 parent 049f178 commit 06dbebd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/bunyan.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.<level>(msg, ...)`
fields = null;
msgArgs = Array.prototype.slice.call(args);
Expand Down

0 comments on commit 06dbebd

Please sign in to comment.