From 64d1b9c79e36bb9a50f7d27694e0863f2ff6a65e Mon Sep 17 00:00:00 2001 From: Mike Donnalley Date: Tue, 9 Aug 2022 05:53:29 -0600 Subject: [PATCH] fix: revert #460 --- src/command.ts | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/command.ts b/src/command.ts index b0ff4caa..f938cf12 100644 --- a/src/command.ts +++ b/src/command.ts @@ -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