Skip to content

Commit 23b2029

Browse files
committed
优化代码
1 parent 5c4b312 commit 23b2029

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Listener/RouteInit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ private function parseAnnotations(EventParam $e): void
6060
{
6161
/** @var \Imi\Rpc\Route\Annotation\Contract\IRpcRoute[] $routes */
6262
$routes = AnnotationManager::getMethodAnnotations($className, $methodName, $routeAnnotationClass);
63-
if (!isset($routes[0]))
63+
if (!$routes)
6464
{
6565
$routes = [
6666
$route->getDefaultRouteAnnotation($className, $methodName, $classAnnotation),

0 commit comments

Comments
 (0)