Fix golint failure not contained in .golint_failures

This commit is contained in:
sshukun
2019-12-19 14:40:26 +09:00
parent 8cd8784289
commit 8110e08dd4

View File

@@ -26,7 +26,7 @@ import (
// EmptyFields represents a set with no paths // EmptyFields represents a set with no paths
// It looks like metav1.Fields{Raw: []byte("{}")} // It looks like metav1.Fields{Raw: []byte("{}")}
var EmptyFields metav1.FieldsV1 = func() metav1.FieldsV1 { var EmptyFields = func() metav1.FieldsV1 {
f, err := SetToFields(*fieldpath.NewSet()) f, err := SetToFields(*fieldpath.NewSet())
if err != nil { if err != nil {
panic("should never happen") panic("should never happen")