Skip to content
This repository has been archived by the owner on May 4, 2024. It is now read-only.

Commit

Permalink
Appease standard
Browse files Browse the repository at this point in the history
  • Loading branch information
iarna committed Jun 26, 2017
1 parent c9ed17d commit 5414070
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions log.js
Expand Up @@ -180,9 +180,7 @@ log.log = function (lvl, prefix, message) {
var arg = a[i - 2] = arguments[i]

// resolve stack traces to a plain string.
if (typeof arg === 'object' && arg &&
(arg instanceof Error) && arg.stack) {

if (typeof arg === 'object' && arg instanceof Error && arg.stack) {
Object.defineProperty(arg, 'stack', {
value: stack = arg.stack + '',
enumerable: true,
Expand Down

0 comments on commit 5414070

Please sign in to comment.