From 098193150640ce7cf74f6e7f1b1d06020dd994ba Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Wed, 27 May 2026 01:53:14 +0000 Subject: [PATCH] fix: replace deprecated reflect.Ptr with reflect.Pointer reflect.Ptr was deprecated in Go 1.22 in favor of reflect.Pointer. golangci-lint v2 govet checker now flags this. Co-Authored-By: Sohil Kshirsagar --- internal/config/config.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/config/config.go b/internal/config/config.go index fc5e7df..d479730 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -502,7 +502,7 @@ func CheckUnknownKeys() []string { func getValidKeys(t reflect.Type, prefix string) []string { var keys []string - if t.Kind() == reflect.Ptr { + if t.Kind() == reflect.Pointer { t = t.Elem() } @@ -526,7 +526,7 @@ func getValidKeys(t reflect.Type, prefix string) []string { // Recurse into nested structs fieldType := field.Type - if fieldType.Kind() == reflect.Ptr { + if fieldType.Kind() == reflect.Pointer { fieldType = fieldType.Elem() } if fieldType.Kind() == reflect.Struct {