Co-locate declaration and initialization.
Change-Id: I7b6cfe4c4e2a4556c1ba61ccd8d1b0cd77adaf57
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
}
private synchronized FluentFuture<? extends CommitInfo> terminateConnection() {
- final FluentFuture<? extends CommitInfo> future;
if (trackerRegistration != null) {
trackerRegistration.close();
trackerRegistration = null;
}
tables = ImmutableSet.of();
addPathTableMaps = ImmutableMap.of();
- future = removePeer(peerPath);
+ final var future = removePeer(peerPath);
resetState();
return future;