Skip to content

Commit d0d2c5e

Browse files
committed
Remove NODE_ENV check
Motivation: tj#1955
1 parent b6ef1e1 commit d0d2c5e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/command.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ const { suggestSimilar } = require('./suggestSimilar');
1212

1313
// @ts-check
1414

15-
const PRODUCTION = process.env.NODE_ENV === 'production';
16-
1715
class Command extends EventEmitter {
1816
/**
1917
* Initialize a new `Command`.
@@ -2092,7 +2090,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
20922090
*/
20932091

20942092
_checkForObscuredHelpOption(makeMessage) {
2095-
if (!PRODUCTION && this._hasHelpOption) {
2093+
if (this._hasHelpOption) {
20962094
const shortMatchingOption = this._helpOption.short &&
20972095
this._findOption(this._helpOption.short);
20982096
if (shortMatchingOption || !this._helpOption.short) {

0 commit comments

Comments
 (0)