diff --git a/src/Actions/CloneRoutesAsTenant.php b/src/Actions/CloneRoutesAsTenant.php index 70c277eb..86c3df9d 100644 --- a/src/Actions/CloneRoutesAsTenant.php +++ b/src/Actions/CloneRoutesAsTenant.php @@ -120,14 +120,8 @@ class CloneRoutesAsTenant $pathIdentificationUsed = (! $routeHasNonPathIdentificationMiddleware) && ($routeHasPathIdentificationMiddleware || $pathIdentificationMiddlewareInGlobalStack); - if ( - $pathIdentificationUsed && - (tenancy()->getRouteMode($route) === RouteMode::UNIVERSAL || tenancy()->routeHasMiddleware($route, 'clone')) - ) { - return true; - } - - return false; + return $pathIdentificationUsed && + (tenancy()->getRouteMode($route) === RouteMode::UNIVERSAL || tenancy()->routeHasMiddleware($route, 'clone')); }); }