Skip to content

Commit 176c041

Browse files
committed
🧹 Drop two redundant template wrappers in answer delivery
Each wrapped an already-string expression in a template of its own.
1 parent 15037f6 commit 176c041

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎packages/workflow/src/deno/delivery.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ function* judgeAnswer(
271271
return Err(
272272
new WorkflowAnswerDeliveryError(
273273
`the response schema retained for ${suspensionId} cannot judge an answer: ` +
274-
`${error instanceof Error ? error.message : String(error)}`,
274+
(error instanceof Error ? error.message : String(error)),
275275
),
276276
);
277277
}
@@ -323,8 +323,8 @@ function* scanDelivery(
323323
} catch (error) {
324324
return Err(
325325
new WorkflowAnswerDeliveryError(
326-
`secret detection could not scan this answer, so it was not retained: ` +
327-
`${error instanceof Error ? error.message : String(error)}`,
326+
"secret detection could not scan this answer, so it was not retained: " +
327+
(error instanceof Error ? error.message : String(error)),
328328
),
329329
);
330330
}

0 commit comments

Comments
 (0)