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 b6ef1e1 commit d0d2c5e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/command.js
Original file line number Diff line number Diff line change
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 @@ -2092,7 +2090,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
*/

_checkForObscuredHelpOption(makeMessage) {
if (!PRODUCTION && this._hasHelpOption) {
if (this._hasHelpOption) {
const shortMatchingOption = this._helpOption.short &&
this._findOption(this._helpOption.short);
if (shortMatchingOption || !this._helpOption.short) {
Expand Down

0 comments on commit d0d2c5e

Please sign in to comment.