Skip to content

Commit d67b9ab

Browse files
committed
minor style fix
1 parent 5c3290d commit d67b9ab

File tree

1 file changed

+1
-2
lines changed
  • instrumentation/vertx/vertx-sql-client/vertx-sql-client-5.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/vertx/v5_0/sql

1 file changed

+1
-2
lines changed

instrumentation/vertx/vertx-sql-client/vertx-sql-client-5.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/vertx/v5_0/sql/PoolInstrumentation.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,7 @@ public void transform(TypeTransformer transformer) {
6363
public static class PoolAdvice {
6464
@Advice.OnMethodEnter(suppress = Throwable.class)
6565
public static CallDepth onEnter(@Advice.Argument(1) SqlConnectOptions sqlConnectOptions) {
66-
CallDepth callDepth = null;
67-
callDepth = CallDepth.forClass(Pool.class);
66+
CallDepth callDepth = CallDepth.forClass(Pool.class);
6867
if (callDepth.getAndIncrement() > 0) {
6968
return callDepth;
7069
}

0 commit comments

Comments
 (0)