Skip to content

Commit 8ec6de7

Browse files
authored
Merge pull request #19 from experius/feature/fix_codescan_errors
[REFACTOR][SCOSA-329] Make sure exit isnt used anymore
2 parents 9763ffa + b31c25d commit 8ec6de7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Plugin/Magento/Store/App/Request/StorePathInfoValidator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public function afterGetValidStoreCode(
115115
$response = $this->responseFactory->create();
116116
$response->setRedirect($request->getDistroBaseUrl() . $requestUri, 301);
117117
$response->sendResponse();
118-
exit;
118+
return ''; // This should never be reached because of the function above.
119119
}
120120

121121
$storeCode = "{$websiteCode}_{$pathParts[0]}";

0 commit comments

Comments
 (0)