Skip to content

Commit 55bedd4

Browse files
committed
Inject comments into source line
Attempt to satisfy GitHub Copilot Complains about unreachable code
1 parent ea4f7ae commit 55bedd4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

core/src/main/java/jenkins/model/Jenkins.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5091,11 +5091,11 @@ public static boolean isCheckURIEncodingEnabled() {
50915091
public Future<DependencyGraph> getFutureDependencyGraph() {
50925092
synchronized (dependencyGraphLock) {
50935093
// Scheduled future will be the most recent one --> Return
5094-
return Objects.requireNonNullElseGet(scheduledFutureDependencyGraph, () -> Objects.requireNonNullElseGet(calculatingFutureDependencyGraph, () -> CompletableFuture.completedFuture(dependencyGraph)));
5095-
5094+
return Objects.requireNonNullElseGet(scheduledFutureDependencyGraph,
50965095
// Calculating future will be the most recent one --> Return
5097-
5096+
() -> Objects.requireNonNullElseGet(calculatingFutureDependencyGraph,
50985097
// No scheduled or calculating future --> Already completed dependency graph is the most recent one
5098+
() -> CompletableFuture.completedFuture(dependencyGraph)));
50995099
}
51005100
}
51015101

0 commit comments

Comments
 (0)