Skip to content

Commit 15184c8

Browse files
authored
Simplify receive method by removing conditional
1 parent bd5323f commit 15184c8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

docs/features/queries.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,7 @@ class MyWorkflow extends Workflow
7777
#[UpdateMethod]
7878
public function receive()
7979
{
80-
if ($this->outbox->hasUnsent()) {
81-
return $this->outbox->nextUnsent();
82-
}
80+
return $this->outbox->nextUnsent();
8381
}
8482

8583
public function execute()

0 commit comments

Comments
 (0)