Skip to content

Commit 9fba94a

Browse files
committed
remove early returns
1 parent 2c0422c commit 9fba94a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/coordinator/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1446,7 +1446,7 @@ class TaskCoordinator {
14461446
console.log("Manual duration checkpoint", data);
14471447

14481448
if (async) {
1449-
return reply.text("Creating checkpoint in the background", 202);
1449+
reply.text("Creating checkpoint in the background", 202);
14501450
}
14511451

14521452
const checkpoint = await this.#checkpointer.checkpointAndPush({
@@ -1547,7 +1547,7 @@ class TaskCoordinator {
15471547
console.log("Manual checkpoint", data);
15481548

15491549
if (async) {
1550-
return reply.text("Creating checkpoint in the background", 202);
1550+
reply.text("Creating checkpoint in the background", 202);
15511551
}
15521552

15531553
const checkpoint = await this.#checkpointer.checkpointAndPush({

0 commit comments

Comments
 (0)