Skip to content

Commit 0eae966

Browse files
author
bnasslahsen
committed
code review
1 parent 8da0242 commit 0eae966

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

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

174175

0 commit comments

Comments
 (0)