Skip to content

Commit ffc824f

Browse files
committed
Remove unnecessary if statement.
$response is of type Psr\Http\Message\ResponseInterface, thus it always evaluated to true
1 parent dbe06e6 commit ffc824f

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

src/Client.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,10 +131,6 @@ public function performHttpCall(string $httpMethod, string $apiMethod, ?string $
131131
throw DhlParcelException::createFromGuzzleRequestException($e);
132132
}
133133

134-
if (! $response) {
135-
throw new DhlParcelException('No API response received.');
136-
}
137-
138134
return $response;
139135
}
140136

0 commit comments

Comments
 (0)