Skip to content

Commit

Permalink
DGS-7797: Fix checkstyle errors
Browse files Browse the repository at this point in the history
  • Loading branch information
akhileshm1 committed Aug 1, 2023
1 parent 7593732 commit 0cf2717
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -226,9 +226,9 @@ static SchemaRegistryIdentity getMyIdentity(NamedURI internalListener,
SchemeAndPort schemeAndPort = new SchemeAndPort(internalListener.getUri().getScheme(),
// default value of 8081 is always set for `host.port`. only consider `host.port` if the
// original properties has it. otherwise, use the port from the listener.
config.originals().containsKey(SchemaRegistryConfig.HOST_PORT_CONFIG) ?
config.getInt(SchemaRegistryConfig.HOST_PORT_CONFIG) :
internalListener.getUri().getPort());
config.originals().containsKey(SchemaRegistryConfig.HOST_PORT_CONFIG)
? config.getInt(SchemaRegistryConfig.HOST_PORT_CONFIG) :
internalListener.getUri().getPort());
String host = config.getString(SchemaRegistryConfig.HOST_NAME_CONFIG);
return new SchemaRegistryIdentity(host, schemeAndPort.port, isEligibleForLeaderElector,
schemeAndPort.scheme);
Expand Down

0 comments on commit 0cf2717

Please sign in to comment.