build: fix gosec and go vet lint errors for Go 1.26
Signed-off-by: Sunnatillo <sunnat.samadov@est.tech>
This commit is contained in:
21 files changed
+26
-11
No files matched your search
@@ -473,7 +473,7 @@ func GetSpec(obj client.Object) interface{} {
|
||||
val := reflect.ValueOf(obj)
|
||||
|
||||
// If obj is a pointer, get the element
|
||||
if val.Kind() == reflect.Ptr {
|
||||
if val.Kind() == reflect.Pointer {
|
||||
val = val.Elem()
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user