1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2025-03-31 04:04:51 +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 // We parse the cryptic string message for better readability
var f assertions.FailureView var f assertions.FailureView
if err := yaml.Unmarshal([]byte(msg), &f); err == nil { if err := yaml.Unmarshal([]byte(msg), &f); err == nil {
Printf("%s\n", f.Message) _, _ = Printf("%s\n", f.Message)
} else { } else {
Printf("%s\n", msg) _, _ = Printf("%s\n", msg)
} }
} }
return ok return ok