diff --git a/nachrichten-manager-server/src/main/java/de/ozgcloud/nachrichten/postfach/PostfachService.java b/nachrichten-manager-server/src/main/java/de/ozgcloud/nachrichten/postfach/PostfachService.java index 455d4028812ce220daae65e2865c819a2a26170e..a6e8b081fe836a1bcb6d56867ec9fc267b7cd1c7 100644 --- a/nachrichten-manager-server/src/main/java/de/ozgcloud/nachrichten/postfach/PostfachService.java +++ b/nachrichten-manager-server/src/main/java/de/ozgcloud/nachrichten/postfach/PostfachService.java @@ -284,12 +284,11 @@ class PostfachService { .findFirst(); } - private boolean hasPostfachType(PostfachRemoteService postfachRemoteService, String postfachType) { - return StringUtils.equals(postfachRemoteService.getPostfachType(), postfachType); - } - Stream<PostfachRemoteService> getPostfachRemoteServices() { return postfachRemoteServices.map(Collection::stream).orElseThrow(() -> new NotConfiguredException("No postfach configured")); } + private boolean hasPostfachType(PostfachRemoteService postfachRemoteService, String postfachType) { + return StringUtils.equals(postfachRemoteService.getPostfachType(), postfachType); + } } \ No newline at end of file