Skip to content

Commit f09f0ae

Browse files
committed
Remove unnecessary condition;
1 parent 7b933ab commit f09f0ae

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Symfony/Component/HttpKernel/HttpKernel.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,7 @@ private function handleRaw(Request $request, int $type = self::MASTER_REQUEST)
157157

158158
if ($event->hasResponse()) {
159159
$response = $event->getResponse();
160-
}
161-
162-
if (!$response instanceof Response) {
160+
} else {
163161
$msg = sprintf('The controller must return a response (%s given).', $this->varToString($response));
164162

165163
// the user may have forgotten to return something

0 commit comments

Comments
 (0)