Skip to content

Commit 3dbdc33

Browse files
committed
chore(log): log out <none> when no IP is given to ipsToString
1 parent 10cfe67 commit 3dbdc33

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

internal/update/helpers.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ func (s *Service) logInfoLookupUpdate(hostname, ipKind string, recordIPs []netip
4343
}
4444

4545
func ipsToString(ips []netip.Addr) string {
46+
if len(ips) == 0 {
47+
return "<none>"
48+
}
4649
ipStrings := make([]string, len(ips))
4750
for i, ip := range ips {
4851
ipStrings[i] = ip.String()

0 commit comments

Comments
 (0)