Skip to content

Commit ebe4526

Browse files
committed
3961: Code cleanup
1 parent 8cef03d commit ebe4526

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Form/RetryJob.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,15 +64,15 @@ public function getQuestion(): TranslatableMarkup {
6464

6565
$webformId = $this->helper->getWebformIdFromQueue($job->getId());
6666

67-
if (NULL !== $webformId) {
67+
if (NULL === $webformId) {
68+
return $this->t('Are you sure you want to retry queue job: @jobId', ['@jobId' => $job->getId()]);
69+
}
70+
else {
6871
return $this->t('Are you sure you want to retry queue job related to Webform: @webformId, Submission id: @serialId', [
6972
'@serialId' => $this->helper->getSubmissionSerialIdFromJob($job->getId()),
7073
'@webformId' => $this->entityTypeManager->getStorage('webform')->load($webformId)->label(),
7174
]);
7275
}
73-
else {
74-
return $this->t('Are you sure you want to retry queue job: @jobId', ['@jobId' => $job->getId()]);
75-
}
7676
}
7777

7878
/**

0 commit comments

Comments
 (0)