Skip to content

Commit

Permalink
Prevent false positive
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-kl1 authored Mar 19, 2024
1 parent 6063c2a commit 908e5b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion App/Request/PathInfoProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function __construct(
public function process(RequestInterface $request, $pathInfo): string
{
$storeCode = $this->storePathInfoValidator->getValidStoreCode($request, $pathInfo);
if (!empty($storeCode)) {
if ($storeCode !== null) {
try {
$path = $this->pathResolver->resolve($this->storeRepository->getActiveStoreByCode($storeCode));
} catch (LocalizedException) {
Expand Down

0 comments on commit 908e5b3

Please sign in to comment.