Skip to content

Commit 9edfea6

Browse files
committed
fixes #1031.
1 parent 4e07c6b commit 9edfea6

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

springdoc-openapi-common/src/main/java/org/springdoc/api/AbstractOpenApiResource.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -301,11 +301,8 @@ protected synchronized OpenAPI getOpenApi() {
301301
LOGGER.info("Init duration for springdoc-openapi is: {} ms",
302302
Duration.between(start, Instant.now()).toMillis());
303303
}
304-
else {
305-
if (!CollectionUtils.isEmpty(openAPIService.getCachedOpenAPI().getServers()))
306-
openAPIService.setServersPresent(true);
304+
else
307305
openApi = openAPIService.updateServers(openAPIService.getCachedOpenAPI());
308-
}
309306
return openApi;
310307
}
311308

0 commit comments

Comments
 (0)