Skip to content

Commit 3728fcd

Browse files
committed
Fix lint
1 parent 68e0813 commit 3728fcd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

internal/formatter.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ func (f Formatter) value(val interface{}, depth int) *cpb.AnyValue {
276276
out.Value = &cpb.AnyValue_KvlistValue{
277277
KvlistValue: &cpb.KeyValueList{Values: kvs},
278278
}
279-
case reflect.Ptr, reflect.Interface:
279+
case reflect.Pointer, reflect.Interface:
280280
if v.IsNil() {
281281
// Empty value.
282282
return out
@@ -306,7 +306,7 @@ func isEmpty(v reflect.Value) bool {
306306
return v.Float() == 0
307307
case reflect.Complex64, reflect.Complex128:
308308
return v.Complex() == 0
309-
case reflect.Interface, reflect.Ptr:
309+
case reflect.Interface, reflect.Pointer:
310310
return v.IsNil()
311311
}
312312
return false

0 commit comments

Comments
 (0)