Skip to content

Commit c9d1942

Browse files
committed
opentelemetry: Simplify ClientCall initialization in tests
1 parent 1a0453f commit c9d1942

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

opentelemetry/src/test/java/io/grpc/opentelemetry/OpenTelemetryMetricsModuleTest.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1679,8 +1679,8 @@ public void targetAttributeFilter_notSet_usesOriginalTarget() {
16791679
Channel interceptedChannel =
16801680
ClientInterceptors.intercept(
16811681
grpcServerRule.getChannel(), module.getClientInterceptor(target));
1682-
ClientCall<String, String> call;
1683-
call = interceptedChannel.newCall(method, CALL_OPTIONS);
1682+
1683+
ClientCall<String, String> call = interceptedChannel.newCall(method, CALL_OPTIONS);
16841684

16851685
// Make the call
16861686
Metadata headers = new Metadata();
@@ -1723,8 +1723,8 @@ public void targetAttributeFilter_allowsTarget_usesOriginalTarget() {
17231723
Channel interceptedChannel =
17241724
ClientInterceptors.intercept(
17251725
grpcServerRule.getChannel(), module.getClientInterceptor(target));
1726-
ClientCall<String, String> call;
1727-
call = interceptedChannel.newCall(method, CALL_OPTIONS);
1726+
1727+
ClientCall<String, String> call = interceptedChannel.newCall(method, CALL_OPTIONS);
17281728

17291729
// Make the call
17301730
Metadata headers = new Metadata();
@@ -1767,8 +1767,8 @@ public void targetAttributeFilter_rejectsTarget_mapsToOther() {
17671767
Channel interceptedChannel =
17681768
ClientInterceptors.intercept(
17691769
grpcServerRule.getChannel(), module.getClientInterceptor(target));
1770-
ClientCall<String, String> call;
1771-
call = interceptedChannel.newCall(method, CALL_OPTIONS);
1770+
1771+
ClientCall<String, String> call = interceptedChannel.newCall(method, CALL_OPTIONS);
17721772

17731773
// Make the call
17741774
Metadata headers = new Metadata();

0 commit comments

Comments
 (0)