Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ae2fde1

Browse files
Remove unused code and unnecessary else branches
1 parent 321635b commit ae2fde1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Factory/PsrHttpFactory.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,7 @@ public function createResponse(Response $symfonyResponse): ResponseInterface
195195
}
196196

197197
$protocolVersion = $symfonyResponse->getProtocolVersion();
198-
$response = $response->withProtocolVersion($protocolVersion);
199198

200-
return $response;
199+
return $response->withProtocolVersion($protocolVersion);
201200
}
202201
}

0 commit comments

Comments
 (0)