cmd: apply go fix
Updates #cleanup Signed-off-by: Adriano Sela Aviles <adriano@tailscale.com>
This commit is contained in:
committed by
Adriano Sela Aviles
parent
2b62cb54a7
commit
66a51c426f
+2
-2
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user