Avoid closing over range variables

This commit is contained in:
Maciej Szulik
2017-01-10 16:53:49 +01:00
parent 6f37347fce
commit 19a25e480f
2 changed files with 4 additions and 3 deletions

View File

@@ -41,7 +41,7 @@ func addConversionFuncs(scheme *runtime.Scheme) error {
case "metadata.name", "metadata.namespace", "status.successful":
return label, value, nil
default:
return "", "", fmt.Errorf("field label not supported: %s", label)
return "", "", fmt.Errorf("field label %q not supported for Job", label)
}
},
)