cmd: apply go fix

Updates #cleanup

Signed-off-by: Adriano Sela Aviles <adriano@tailscale.com>
This commit is contained in:
Adriano Sela Aviles
2026-07-10 14:26:11 -07:00
committed by Adriano Sela Aviles
parent 2b62cb54a7
commit 66a51c426f
7 changed files with 12 additions and 23 deletions
+2 -2
View File
@@ -504,8 +504,8 @@ func writeOutput(path string, data []byte) error {
// isZeroMapResponse reports whether all fields of resp are zero values.
func isZeroMapResponse(resp *tailcfg.MapResponse) bool {
v := reflect.ValueOf(*resp)
for i := range v.NumField() {
if !v.Field(i).IsZero() {
for _, field := range v.Fields() {
if !field.IsZero() {
return false
}
}