mirror of
https://github.com/vmware-tanzu/pinniped.git
synced 2026-02-14 18:10:17 +00:00
Fix revive linter issues for all production code, and exclude revive linter issues for test code
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
// Copyright 2020 the Pinniped contributors. All Rights Reserved.
|
||||
// Copyright 2020-2024 the Pinniped contributors. All Rights Reserved.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package controllerlib
|
||||
@@ -66,7 +66,7 @@ func FilterByNames(parentFunc ParentFunc, names ...string) Filter {
|
||||
return FilterFuncs{
|
||||
ParentFunc: parentFunc,
|
||||
AddFunc: has,
|
||||
UpdateFunc: func(oldObj, newObj metav1.Object) bool {
|
||||
UpdateFunc: func(_oldObj, newObj metav1.Object) bool {
|
||||
return has(newObj)
|
||||
},
|
||||
DeleteFunc: has,
|
||||
|
||||
Reference in New Issue
Block a user