We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7bf799 commit ee2c297Copy full SHA for ee2c297
src/colors.js
@@ -5,7 +5,7 @@ const chalk = require('chalk')
5
const getColors = function({ opts: { colors } }) {
6
// Can disable or force colors with `opts.colors`.
7
// chalk will automatically disable colors if output does not support it.
8
- const chalkOpts = colors === undefined ? {} : { enabled: Boolean(colors) }
+ const chalkOpts = { enabled: Boolean(colors) }
9
10
return chalk.constructor(chalkOpts)
11
}
0 commit comments