decaffeinate: Run post-processing cleanups on index.coffee and 138 other files

This commit is contained in:
decaffeinate
2020-06-04 15:28:24 -04:00
committed by Zach Bloomquist
parent aa368c471d
commit 76ddf33561
139 changed files with 23260 additions and 19602 deletions
+9 -5
View File
@@ -1,12 +1,16 @@
// TODO: This file was created by bulk-decaffeinate.
// Sanity-check the conversion and remove this comment.
/*
* decaffeinate suggestions:
* DS102: Remove unnecessary code created because of implicit returns
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
*/
const chalk = require("chalk");
const chalk = require('chalk')
module.exports = function(msg, color = "yellow") {
if (process.env["NODE_ENV"] === "test") { return; }
module.exports = function (msg, color = 'yellow') {
if (process.env['NODE_ENV'] === 'test') {
return
}
return console.log(chalk[color](msg), chalk.bgWhite(chalk.black(this.osName)));
};
return console.log(chalk[color](msg), chalk.bgWhite(chalk.black(this.osName)))
}