Skip to content

Commit

Permalink
Еще Сонар
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey Ovsyankin committed Sep 10, 2024
1 parent fbe7400 commit b6d746f
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,9 @@ private static boolean isServerModule(DocumentContext documentContext) {
private static boolean isServerCommonModule(DocumentContext documentContext) {
var mdObject = documentContext.getMdObject();

return mdObject.map(mdo -> (CommonModule) mdo)
.filter(commonModule -> !(commonModule.isClientManagedApplication() || commonModule.isClientOrdinaryApplication()))
return mdObject.map(CommonModule.class::cast)
.filter(commonModule -> !(commonModule.isClientManagedApplication() ||
commonModule.isClientOrdinaryApplication()))
.isPresent();
}

Expand Down

0 comments on commit b6d746f

Please sign in to comment.