Skip to content

Commit ee2c297

Browse files
committed
Remove unreacheable code
1 parent f7bf799 commit ee2c297

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/colors.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const chalk = require('chalk')
55
const getColors = function({ opts: { colors } }) {
66
// Can disable or force colors with `opts.colors`.
77
// chalk will automatically disable colors if output does not support it.
8-
const chalkOpts = colors === undefined ? {} : { enabled: Boolean(colors) }
8+
const chalkOpts = { enabled: Boolean(colors) }
99

1010
return chalk.constructor(chalkOpts)
1111
}

0 commit comments

Comments
 (0)