Skip to content

Commit

Permalink
Sonar cleanup: RegistryAwareClientTest (#326)
Browse files Browse the repository at this point in the history
Change lambda parameter so it doesn't shadow an instance field.
  • Loading branch information
sleberknight committed Jun 18, 2024
1 parent 4cf80e0 commit bb348d5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ void shouldBuildClientForWith() {

var identifier = ServiceIdentifier.builder().serviceName("test-service").build();
var target = registryAwareClient.targetForService(identifier, PortType.ADMIN,
instance -> instance.getPaths().getStatusPath());
theInstance -> theInstance.getPaths().getStatusPath());

assertThat(target.getUri()).hasToString("https://localhost:8081/ping");
}
Expand Down

0 comments on commit bb348d5

Please sign in to comment.