Skip to content

Commit

Permalink
Remove NODE_ENV check
Browse files Browse the repository at this point in the history
Motivation: tj#1955
  • Loading branch information
aweebit committed Aug 11, 2023
1 parent 5b06aaa commit bb744a5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/command.js
Expand Up @@ -12,8 +12,6 @@ const { suggestSimilar } = require('./suggestSimilar');

// @ts-check

const PRODUCTION = process.env.NODE_ENV === 'production';

class Command extends EventEmitter {
/**
* Initialize a new `Command`.
Expand Down Expand Up @@ -909,7 +907,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
parse(argv, parseOptions) {
const userArgs = this._prepareUserArgs(argv, parseOptions);
const result = this._parseCommand([], userArgs);
if (!PRODUCTION && isThenable(result)) {
if (isThenable(result)) {
console.warn(`.parse() is incompatible with async hooks and actions.
Use .parseAsync() instead.`);
}
Expand Down

0 comments on commit bb744a5

Please sign in to comment.