Update supports-colors.js

This commit is contained in:
paladox 2018-02-14 01:02:05 +00:00 committed by GitHub
parent 493733638d
commit 2c38a68a7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -76,7 +76,7 @@ function supportsColor(stream) {
return 0;
}
const min = forceColor ? 1 : 0;
var min = forceColor ? 1 : 0;
if (process.platform === 'win32') {
// Node.js 7.5.0 is the first version of Node.js to include a patch to
@ -143,7 +143,7 @@ function supportsColor(stream) {
}
function getSupportLevel(stream) {
const level = supportsColor(stream);
var level = supportsColor(stream);
return translateLevel(level);
}