Skip to content

Commit

Permalink
fix: revert #460
Browse files Browse the repository at this point in the history
  • Loading branch information
mdonnalley committed Aug 9, 2022
1 parent 858b40c commit 64d1b9c
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/command.ts
Expand Up @@ -104,14 +104,7 @@ export default abstract class Command {

static set enableJsonFlag(value: boolean) {
this._enableJsonFlag = value
if (value === true) {
this.globalFlags = jsonFlag
} else {
// @ts-ignore
delete this.globalFlags.json
// @ts-ignore
delete this.flags.json
}
if (value) this.globalFlags = jsonFlag
}

// eslint-disable-next-line valid-jsdoc
Expand Down

0 comments on commit 64d1b9c

Please sign in to comment.