Description
The latest golangci-lint image includes an updated govet analyzer with the inline check, which flags uses of reflect.Ptr that should be inlined as a constant.
This causes the lint pipeline to fail on main:
pkg/utils/error.go:37:19: inline: Constant reflect.Ptr should be inlined (govet)
if val.Kind() == reflect.Ptr {
^
pkg/utils/reflect.go:136:22: inline: Constant reflect.Ptr should be inlined (govet)
if field.Kind() == reflect.Ptr && field.IsNil() {
^
pkg/utils/reflect.go:157:21: inline: Constant reflect.Ptr should be inlined (govet)
if val.Kind() == reflect.Ptr && !val.IsNil() {
^
Fix
Replace all reflect.Ptr with reflect.Pointer
Description
The latest golangci-lint image includes an updated govet analyzer with the inline check, which flags uses of reflect.Ptr that should be inlined as a constant.
This causes the lint pipeline to fail on main:
Fix
Replace all
reflect.Ptrwithreflect.Pointer