Skip to content

Commit e466924

Browse files
committed
chore: simplify
1 parent 8df6f9b commit e466924

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

packages/shared/pkg/grpc/channelz.go

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -461,15 +461,6 @@ func channelzTargetHost(target string) string {
461461
}
462462
}
463463

464-
if strings.Count(target, ":") == 1 {
465-
host, port, ok := strings.Cut(target, ":")
466-
if ok {
467-
if _, err := strconv.Atoi(port); err == nil {
468-
return strings.Trim(host, "[]")
469-
}
470-
}
471-
}
472-
473464
return strings.Trim(target, "[]")
474465
}
475466

0 commit comments

Comments
 (0)