ipn: fix the string representation of an empty ipn.Notify

Before: `ipn.Notify}`
After:  `ipn.Notify{}`

Updates #cleanup

Signed-off-by: Alex Chan <alexc@tailscale.com>
This commit is contained in:
Alex Chan
2025-09-16 17:39:21 +01:00
committed by Alex Chan
parent 2015ce4081
commit 84659b1dc6
2 changed files with 47 additions and 1 deletions

View File

@@ -205,7 +205,11 @@ func (n Notify) String() string {
}
s := sb.String()
return s[0:len(s)-1] + "}"
if s == "Notify{" {
return "Notify{}"
} else {
return s[0:len(s)-1] + "}"
}
}
// PartialFile represents an in-progress incoming file transfer.