Skip to content

Commit

Permalink
Fix nested ternaries
Browse files Browse the repository at this point in the history
  • Loading branch information
salesh committed Jan 15, 2021
1 parent 58d9b6d commit 44b698e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pino.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,11 +142,11 @@ function pino (...args) {
let chindings = ''
if (base !== null) {
if (name === undefined) {
chindings = coreChindings(base);
chindings = coreChindings(base)
} else {
chindings = coreChindings(Object.assign({}, base, { name }));
chindings = coreChindings(Object.assign({}, base, { name }))
}
}
}

const time = (timestamp instanceof Function)
? timestamp
Expand Down

0 comments on commit 44b698e

Please sign in to comment.