mirror of
https://github.com/kubernetes/kubectl.git
synced 2026-05-28 04:35:50 -04:00
fix: enable contains rule from testifylint in module k8s.io/kubectl
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com> Kubernetes-commit: 1e7bd5541ea20b41d961f1bb88d9cc958a69ff66
This commit is contained in:
parent
f92e952318
commit
cfb4ff091f
1 changed files with 1 additions and 1 deletions
|
|
@ -232,7 +232,7 @@ func createUnstructured(t *testing.T, config string) *unstructured.Unstructured
|
|||
t.Helper()
|
||||
result := map[string]interface{}{}
|
||||
|
||||
require.False(t, strings.Contains(config, "\t"), "Yaml %s cannot contain tabs", config)
|
||||
require.NotContains(t, config, "\t", "Yaml %s cannot contain tabs", config)
|
||||
require.NoError(t, yaml.Unmarshal([]byte(config), &result), "Could not parse config:\n\n%s\n", config)
|
||||
|
||||
return &unstructured.Unstructured{
|
||||
|
|
|
|||
Loading…
Reference in a new issue