Skip to content

Commit b1d543e

Browse files
fix: replace deprecated reflect.Ptr with reflect.Pointer (#232)
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: Sohil Kshirsagar <sohil@usetusk.ai>
1 parent fb3700d commit b1d543e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

internal/config/config.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ func CheckUnknownKeys() []string {
502502
func getValidKeys(t reflect.Type, prefix string) []string {
503503
var keys []string
504504

505-
if t.Kind() == reflect.Ptr {
505+
if t.Kind() == reflect.Pointer {
506506
t = t.Elem()
507507
}
508508

@@ -526,7 +526,7 @@ func getValidKeys(t reflect.Type, prefix string) []string {
526526

527527
// Recurse into nested structs
528528
fieldType := field.Type
529-
if fieldType.Kind() == reflect.Ptr {
529+
if fieldType.Kind() == reflect.Pointer {
530530
fieldType = fieldType.Elem()
531531
}
532532
if fieldType.Kind() == reflect.Struct {

0 commit comments

Comments
 (0)