1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 22:14:03 +00:00

Refactor: Remove unreachable code after exception (#1271)

This commit is contained in:
Mohammad Javad Asna Ashari 2024-12-29 23:58:29 +03:30 committed by GitHub
parent 30cdc9461e
commit e91ca11123
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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;
}
}