1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2024-12-15 17:50:49 +00:00

pkg/nfd-master: fix linter errors in tests

This commit is contained in:
Markus Lehtonen 2021-10-04 09:51:38 +03:00
parent f1f79575fe
commit 0b386981a6

View file

@ -520,9 +520,9 @@ func jsonPatchMatcher(expected []apihelper.JsonPatch) func([]apihelper.JsonPatch
// We parse the cryptic string message for better readability
var f assertions.FailureView
if err := yaml.Unmarshal([]byte(msg), &f); err == nil {
Printf("%s\n", f.Message)
_, _ = Printf("%s\n", f.Message)
} else {
Printf("%s\n", msg)
_, _ = Printf("%s\n", msg)
}
}
return ok