Skip to content

Commit 47cd116

Browse files
Avoid delete keyword to remove identity from globals
1 parent d5c7e0d commit 47cd116

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/commands/token/capability/worker.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,7 @@ class WorkerCapabilityTokenGenerator extends TwilioClientCommand {
106106
}
107107
}
108108

109-
const globals = { ...globalFlags };
110-
delete globals.identity;
109+
const {_identity, globals} = { ...globalFlags };
111110

112111
WorkerCapabilityTokenGenerator.flags = Object.assign(
113112
taskrouterFlags,

src/commands/token/flex.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,7 @@ class FlexTokenGenerator extends TwilioClientCommand {
4848
}
4949
}
5050

51-
const globals = { ...globalFlags };
52-
delete globals.identity;
51+
const {_identity, globals} = { ...globalFlags };
5352

5453
FlexTokenGenerator.flags = Object.assign(
5554
taskrouterFlags,

0 commit comments

Comments
 (0)