From 3a148aa735c82d7676f486fb56c35bd48d20a5ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6rdes?= Date: Mon, 11 Mar 2024 11:10:07 +0100 Subject: [PATCH] refactoring --- .../core/openapi/serviceproxy/ApiDocsInterceptor.java | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/core/src/main/java/com/predic8/membrane/core/openapi/serviceproxy/ApiDocsInterceptor.java b/core/src/main/java/com/predic8/membrane/core/openapi/serviceproxy/ApiDocsInterceptor.java index efe299fd12..b41320e0f8 100644 --- a/core/src/main/java/com/predic8/membrane/core/openapi/serviceproxy/ApiDocsInterceptor.java +++ b/core/src/main/java/com/predic8/membrane/core/openapi/serviceproxy/ApiDocsInterceptor.java @@ -68,12 +68,10 @@ void initializeRuleApiSpecs() { router.getRuleManager().getRules().stream() .filter(this::hasOpenAPIInterceptor) - .forEach(rule -> { - Optional.of(getOpenAPIInterceptor(rule)).ifPresent(openAPIInterceptor -> ruleApiSpecs.put( - rule.getName(), - openAPIInterceptor.getApiProxy().apiRecords) - ); - }); + .forEach(rule -> Optional.of(getOpenAPIInterceptor(rule)).ifPresent(openAPIInterceptor -> ruleApiSpecs.put( + rule.getName(), + openAPIInterceptor.getApiProxy().apiRecords) + )); } private boolean hasOpenAPIInterceptor(Rule rule) {