Skip to content

Commit

Permalink
Refactor: Remove unreachable code after exception (#1271)
Browse files Browse the repository at this point in the history
  • Loading branch information
mjasnaashari authored Dec 29, 2024
1 parent 30cdc94 commit e91ca11
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Middleware/InitializeTenancyByPath.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,8 @@ public function handle(Request $request, Closure $next)
return $this->initializeTenancy(
$request, $next, $route
);
} else {
throw new RouteIsMissingTenantParameterException;
}

return $next($request);
throw new RouteIsMissingTenantParameterException;
}
}

0 comments on commit e91ca11

Please sign in to comment.