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 3d7773a commit c165611
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,8 @@ export function WorkflowDetails({history, location, match}: RouteComponentProps<
popup
.confirm('Confirm', () => <DeleteCheck isWfInDB={isArchivedWorkflow(workflow)} isWfInCluster={isWorkflowInCluster(workflow)} />)
.then(async yes => {
if (!yes) return;
if (!yes)
return;

const allPromises = [];
if (isWorkflowInCluster(workflow)) {
Expand All @@ -218,7 +219,8 @@ 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) return;
if (!yes)
return;

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

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

updateOutputParametersForNodeIfRequired()
.then(resumeNode)
Expand Down

0 comments on commit c165611

Please sign in to comment.