Skip to content

Commit

Permalink
Spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
jcferretti committed Mar 12, 2024
1 parent 2ea90e0 commit f557c03
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions jetcd-core/src/main/java/io/etcd/jetcd/impl/ElectionImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@
import static io.etcd.jetcd.common.exception.EtcdExceptionFactory.toEtcdException;
import static java.util.Objects.requireNonNull;

import io.vertx.core.Future;

final class ElectionImpl extends Impl implements Election {
private final VertxElectionGrpc.ElectionVertxStub stub;
private final ByteSequence namespace;
Expand Down Expand Up @@ -151,7 +149,9 @@ public CompletableFuture<ResignResponse> resign(LeaderKey leaderKey) {
}

private <S> CompletableFuture<S> wrapConvertException(CompletableFuture<S> future) {
return future.exceptionally(e -> { throw convertException(e); });
return future.exceptionally(e -> {
throw convertException(e);
});
}

private Throwable convertException(Throwable e) {
Expand Down

0 comments on commit f557c03

Please sign in to comment.