Remove unnecessary condition;

This commit is contained in:
243083df 2017-10-09 13:31:38 +04:00
parent 7b933ababf
commit f09f0ae7ba

View File

@ -157,9 +157,7 @@ class HttpKernel implements HttpKernelInterface, TerminableInterface
if ($event->hasResponse()) {
$response = $event->getResponse();
}
if (!$response instanceof Response) {
} else {
$msg = sprintf('The controller must return a response (%s given).', $this->varToString($response));
// the user may have forgotten to return something