Skip to content

Commit dc8ed24

Browse files
committed
spotless
1 parent c75c9eb commit dc8ed24

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

instrumentation/java-http-client/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/javahttpclient/HttpClientInstrumentation.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,8 @@ public static AsyncAdviceScope start(HttpRequest request) {
155155
parentContext, context, context.makeCurrent(), callDepth, request);
156156
}
157157

158-
public CompletableFuture<HttpResponse<?>> end(@Nullable Throwable throwable,
159-
@Nullable CompletableFuture<HttpResponse<?>> future) {
158+
public CompletableFuture<HttpResponse<?>> end(
159+
@Nullable Throwable throwable, @Nullable CompletableFuture<HttpResponse<?>> future) {
160160
if (callDepth.decrementAndGet() > 0 || scope == null) {
161161
// async end nested call
162162
return future;
@@ -170,7 +170,6 @@ public CompletableFuture<HttpResponse<?>> end(@Nullable Throwable throwable,
170170
future = future.whenComplete(new ResponseConsumer(instrumenter(), context, request));
171171
return CompletableFutureWrapper.wrap(future, parentContext);
172172
}
173-
174173
}
175174

176175
@Nullable

0 commit comments

Comments
 (0)