mirror of
https://github.com/cypress-io/cypress.git
synced 2026-04-23 15:39:28 -05:00
decaffeinate: Run post-processing cleanups on index.coffee and 138 other files
This commit is contained in:
committed by
Zach Bloomquist
parent
aa368c471d
commit
76ddf33561
@@ -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)))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user