1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 10:14:04 +00:00

Refactor: Remove unreachable code after exception

This commit is contained in:
mjasnaashari 2024-12-12 10:51:07 +03:30
parent 30cdc9461e
commit 6d3f1f623c

View file

@ -40,10 +40,8 @@ class InitializeTenancyByPath extends IdentificationMiddleware
return $this->initializeTenancy(
$request, $next, $route
);
} else {
throw new RouteIsMissingTenantParameterException;
}
return $next($request);
throw new RouteIsMissingTenantParameterException;
}
}