Skip to content

Commit c336a03

Browse files
committed
style: rename failed future variable to result for consistency
1 parent eb34841 commit c336a03

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/main/java/io/kurrent/dbclient/CreateProjection.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ public CreateProjection(final GrpcClient client, final String projectionName, fi
3030
@SuppressWarnings("unchecked")
3131
public CompletableFuture execute() {
3232
if (engineVersion == 2 && trackEmittedStreams) {
33-
CompletableFuture<Projectionmanagement.CreateResp> failed = new CompletableFuture<>();
34-
failed.completeExceptionally(new IllegalArgumentException(
33+
CompletableFuture<Projectionmanagement.CreateResp> result = new CompletableFuture<>();
34+
result.completeExceptionally(new IllegalArgumentException(
3535
"trackEmittedStreams is not supported when engineVersion is 2 (V2)"));
36-
return failed;
36+
return result;
3737
}
3838

3939
return this.client.run(channel -> {

0 commit comments

Comments
 (0)