Skip to content

Commit 73c5fd6

Browse files
author
bnasslahsen
committed
project review
1 parent 4f5d222 commit 73c5fd6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

springdoc-openapi-webmvc-core/src/main/java/org/springdoc/webmvc/api/OpenApiResource.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,7 @@ && isPathToMatch(operationPath)) {
168168
}
169169
}
170170
}
171-
routerFunctionProvider.ifPresent(routerFunctions -> routerFunctions.getWebMvcRouterFunctionPaths()
172-
.ifPresent(routerBeans -> routerBeans.forEach((beanName, routerFunctionVisitor) -> getRouterFunctionPaths(beanName, routerFunctionVisitor))));
171+
routerFunctionProvider.flatMap(RouterFunctionProvider::getWebMvcRouterFunctionPaths).ifPresent(routerBeans -> routerBeans.forEach(this::getRouterFunctionPaths));
173172
}
174173

175174

0 commit comments

Comments
 (0)