Skip to content

Commit 755cfc9

Browse files
committed
JAVA-1574: Inline local variable with a confusing name
1 parent f51ffae commit 755cfc9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

driver-core/src/main/com/mongodb/connection/BaseCluster.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,8 +227,7 @@ protected synchronized void updateDescription(final ClusterDescription newDescri
227227
}
228228

229229
description = newDescription;
230-
CountDownLatch current = phase.getAndSet(new CountDownLatch(1));
231-
current.countDown();
230+
phase.getAndSet(new CountDownLatch(1)).countDown();
232231
}
233232

234233
protected void fireChangeEvent() {

0 commit comments

Comments
 (0)