Skip to content

Commit

Permalink
Fixes eslint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrej-langr committed Oct 23, 2024
1 parent c0a320b commit 9be3cc0
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions pino.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,11 @@ function pino (...args) {
const { opts, stream } = normalize(instance, caller(), ...args)

if (
opts.level &&
typeof opts.level === 'string' &&
DEFAULT_LEVELS[opts.level.toLowerCase()] !== undefined && 
opts.level &&
typeof opts.level === 'string' &&
DEFAULT_LEVELS[opts.level.toLowerCase()] !== undefined &&
!opts.useOnlyCustomLevels
)
opts.level = opts.level.toLowerCase()
) { opts.level = opts.level.toLowerCase() }

const {
redact,
Expand Down

0 comments on commit 9be3cc0

Please sign in to comment.