Skip to content

Commit be7964c

Browse files
committed
Allow opts.level.*() to return undefined
1 parent 051c1b7 commit be7964c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/level.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const { DEFAULT_LEVEL, LEVELS } = require('./constants')
1111
const getLevel = function({ opts, name, error }) {
1212
const level = result(opts.level[name], error)
1313

14-
if (level === 'default') {
14+
if (level === 'default' || level === undefined) {
1515
return DEFAULT_LEVEL[name]
1616
}
1717

0 commit comments

Comments
 (0)