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:
parent
f1f79575fe
commit
0b386981a6
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue