Skip to content

Commit e249656

Browse files
committed
Simplify test
1 parent 41612a9 commit e249656

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/Action/Api/WebhookEvent/StripeWebhookTestAction.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,8 @@ public function supports($request): bool
3737
}
3838

3939
$id = $this->retrieveEventId($request);
40-
if ('evt_00000000000000' === $id) {
41-
return true;
42-
}
4340

44-
return false;
41+
return 'evt_00000000000000' === $id;
4542
}
4643

4744
private function retrieveEventId(WebhookEvent $request): ?string

0 commit comments

Comments
 (0)