Skip to content

Commit fc4f5d1

Browse files
committed
Address review comments
1 parent 42a7642 commit fc4f5d1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

kubernetes/config/incluster_config.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,7 @@ static int setBasePathInCluster(char **pBasePath)
6666

6767
int basePathSize = strlen(SERVICE_HTTPS_PREFIX) + strlen(service_host_env) + strlen(service_port_env) + 2 /* 1 for ':', 1 for '\0' */ ;
6868
bool isIPv6 = false;
69-
if (strchr(service_host_env, ':') == NULL)
70-
{
69+
if (strchr(service_host_env, ':') != NULL) {
7170
isIPv6 = true;
7271
// Takes into account the square brackets to escape the IP v6 address.
7372
basePathSize += 2;

0 commit comments

Comments
 (0)