Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: replace .at(0) with [0] #214

Merged
merged 3 commits into from
Mar 2, 2023
Merged

fix: replace .at(0) with [0] #214

merged 3 commits into from
Mar 2, 2023

Conversation

WillieRuemmele
Copy link
Contributor

What does this PR do?

replaces .at for older node

What issues does this PR fix or reference?

[skip-validate-pr]

@WillieRuemmele WillieRuemmele requested a review from a team as a code owner March 2, 2023 18:42
@@ -29,7 +29,9 @@ function verifyValidationError(key: string, value: string | number, message: str
];
const result = execCmd<Array<{ error: unknown }>>(`config set ${key}=${value} --json`, { cli: 'sf' }).jsonOutput
?.result;
delete result?.at(0)?.error;
if (result) {
delete result[0].error;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
delete result[0].error;
delete result[0]?.error;

@peternhale peternhale self-requested a review March 2, 2023 19:33
@peternhale peternhale merged commit de835c8 into main Mar 2, 2023
@peternhale peternhale deleted the wr/fixAt branch March 2, 2023 22:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants