Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
Signed-off-by: Noam Gal <[email protected]>
  • Loading branch information
ATGardner committed Jul 15, 2024
1 parent c165611 commit 0c078ef
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,9 @@ export function WorkflowDetails({history, location, match}: RouteComponentProps<
popup
.confirm('Confirm', () => <DeleteCheck isWfInDB={isArchivedWorkflow(workflow)} isWfInCluster={isWorkflowInCluster(workflow)} />)
.then(async yes => {
if (!yes)
if (!yes) {
return;
}

const allPromises = [];
if (isWorkflowInCluster(workflow)) {
Expand All @@ -219,8 +220,9 @@ export function WorkflowDetails({history, location, match}: RouteComponentProps<
setSidePanel('retry');
} else {
popup.confirm('Confirm', `Are you sure you want to ${workflowOperation.title.toLowerCase()} this workflow?`).then(yes => {
if (!yes)
if (!yes) {
return;
}

workflowOperation.action(workflow).catch(setError);
});
Expand Down Expand Up @@ -467,8 +469,9 @@ export function WorkflowDetails({history, location, match}: RouteComponentProps<

function renderResumePopup() {
return popup.confirm('Confirm', renderSuspendNodeOptions).then(yes => {
if (!yes)
if (!yes) {
return;
}

updateOutputParametersForNodeIfRequired()
.then(resumeNode)
Expand Down

0 comments on commit 0c078ef

Please sign in to comment.