Update full linter list and enable some easily resolved new ones

This commit is contained in:
Katrina Verey
2022-03-30 14:07:54 -04:00
parent 0a9c5cb0cf
commit 71bf0d5d14
61 changed files with 185 additions and 184 deletions

View File

@@ -281,7 +281,7 @@ func ExampleElementMatcher_Filter_objectNotFound() {
if err != nil {
log.Fatal(err)
}
append, err := Parse(`
toAppend, err := Parse(`
name: baz
image: nginx
`)
@@ -289,7 +289,7 @@ image: nginx
log.Fatal(err)
}
elem, err := obj.Pipe(ElementMatcher{
Keys: []string{"name"}, Values: []string{"baz"}, Create: append})
Keys: []string{"name"}, Values: []string{"baz"}, Create: toAppend})
if err != nil {
log.Fatal(err)
}
@@ -315,7 +315,7 @@ func ExampleElementMatcher_Filter_objectFound() {
if err != nil {
log.Fatal(err)
}
append, err := Parse(`
toAppend, err := Parse(`
name: baz
image: nginx
`)
@@ -323,7 +323,7 @@ image: nginx
log.Fatal(err)
}
elem, err := obj.Pipe(ElementMatcher{
Keys: []string{"name"}, Values: []string{"baz"}, Create: append})
Keys: []string{"name"}, Values: []string{"baz"}, Create: toAppend})
if err != nil {
log.Fatal(err)
}