Skip to content

Commit 12db42d

Browse files
chore: optional type
1 parent f708a69 commit 12db42d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SfCommandError.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ export class SfCommandError extends SfError {
113113
const aggregator: Array<{ flag: string; args: string[] }> = [];
114114
output.forEach((k, i) => {
115115
let argCounter = i + 1;
116-
if (k.type === 'flag' && output[argCounter].type === 'arg') {
116+
if (k.type === 'flag' && output[argCounter]?.type === 'arg') {
117117
const args: string[] = [];
118118
while (output[argCounter]?.type === 'arg') {
119119
args.push(output[argCounter].input);

0 commit comments

Comments
 (0)