Skip to content

Commit 9b68e64

Browse files
committed
simplify
1 parent 33d0389 commit 9b68e64

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/payload/src/queues/errors/handleWorkflowError.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export async function handleWorkflowError({
5151
workflowConfig.retries === undefined || workflowConfig.retries === null
5252

5353
const { hasFinalError, maxWorkflowRetries, waitUntil } = hasNoRetriesConfigured
54-
? { hasFinalError: true as const, maxWorkflowRetries: undefined, waitUntil: undefined }
54+
? { hasFinalError: true, maxWorkflowRetries: undefined, waitUntil: undefined }
5555
: getWorkflowRetryBehavior({
5656
job,
5757
retriesConfig: workflowConfig.retries,

0 commit comments

Comments
 (0)