Skip to content

Commit c1705f8

Browse files
luis-herasmeOxyjun
andauthored
Update sleeping-and-retrying.mdx (#22160)
* Update sleeping-and-retrying.mdx * Triggering GH compiles * Undoing redundant change --------- Co-authored-by: Jun Lee <[email protected]>
1 parent e7e1d57 commit c1705f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/docs/workflows/build/sleeping-and-retrying.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ import { NonRetryableError } from 'cloudflare:workflows';
102102
export class MyWorkflow extends WorkflowEntrypoint<Env, Params> {
103103
async run(event: WorkflowEvent<Params>, step: WorkflowStep) {
104104
await step.do("some step", async () => {
105-
if !(event.payload.data) {
105+
if (!event.payload.data) {
106106
throw new NonRetryableError("event.payload.data did not contain the expected payload")
107107
}
108108
})

0 commit comments

Comments
 (0)