Skip to content
This repository was archived by the owner on May 3, 2024. It is now read-only.

Commit 213858c

Browse files
committed
Fix small error
1 parent 99b91bc commit 213858c

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

src/FilipSedivy/EET/Dispatcher.php

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,12 @@ public function __construct(Certificate $certificate, string $service = self::PR
4949
$this->checkRequirements();
5050
$this->certificate = $certificate;
5151

52-
if ($service !== null) {
53-
if ($service === self::PLAYGROUND_SERVICE) {
54-
$this->setPlaygroundService();
55-
} elseif ($service === self::PRODUCTION_SERVICE) {
56-
$this->setProductionService();
57-
} else {
58-
$this->setService($service);
59-
}
52+
if ($service === self::PLAYGROUND_SERVICE) {
53+
$this->setPlaygroundService();
54+
} elseif ($service === self::PRODUCTION_SERVICE) {
55+
$this->setProductionService();
56+
} else {
57+
$this->setService($service);
6058
}
6159

6260
if ($validate) {

0 commit comments

Comments
 (0)