Skip to content

Commit 3449380

Browse files
committed
sonar improve
1 parent 7e90e02 commit 3449380

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/org/gridsuite/modification/server/service/NetworkModificationService.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,8 @@ private CompletableFuture<List<Optional<NetworkModificationResult>>> applyModifi
213213
// and schedule the next computation in the same thread as the task
214214
// The list is accessed from different threads but not concurrently and
215215
// with happens-before semantics.
216-
chainedFutures = chainedFutures.thenCompose(accumulatingresults -> {
217-
return applyModifications(
216+
chainedFutures = chainedFutures.thenCompose(accumulatingresults ->
217+
applyModifications(
218218
modificationApplicationContext.networkUuid(),
219219
modificationApplicationContext.variantId(),
220220
new ModificationApplicationGroup(groupUuid,
@@ -224,7 +224,7 @@ private CompletableFuture<List<Optional<NetworkModificationResult>>> applyModifi
224224
accumulatingresults.add(result);
225225
return accumulatingresults;
226226
});
227-
});
227+
);
228228
}
229229
return chainedFutures;
230230
}

0 commit comments

Comments
 (0)