Skip to content

Commit

Permalink
Removed useless code in the meta wrapper for pretty
Browse files Browse the repository at this point in the history
  • Loading branch information
mcollina committed Apr 5, 2019
1 parent f0b8547 commit 7d5455b
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions lib/tools.js
Original file line number Diff line number Diff line change
Expand Up @@ -211,20 +211,10 @@ function prettifierMetaWrapper (pretty, dest) {
}

var lastObj = this.lastObj
var msg = this.lastMsg
var errorProps = null

if (lastObj instanceof Error) {
msg = msg || lastObj.message
errorProps = {
type: 'Error',
stack: lastObj.stack
}
}

const obj = Object.assign({
level: this.lastLevel,
msg,
time
}, chindings, lastObj, errorProps)

Expand Down

0 comments on commit 7d5455b

Please sign in to comment.