From e20e18d2e0e2e1d3ceae19214b0925c180d89350 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Thu, 20 Aug 2026 15:01:51 +0100 Subject: [PATCH] build: modernize with "go fix -reflecttypefor": use reflect.TypeFor --- fs/config/configstruct/configstruct.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/config/configstruct/configstruct.go b/fs/config/configstruct/configstruct.go index 4fa95fe1c..db2b7f512 100644 --- a/fs/config/configstruct/configstruct.go +++ b/fs/config/configstruct/configstruct.go @@ -287,7 +287,7 @@ func setIfSameType(aPtr any, b any) bool { } // Special case: if target is []string and source is a slice or array - if aVal.Type() == reflect.TypeOf([]string(nil)) && (bVal.Kind() == reflect.Slice || bVal.Kind() == reflect.Array) { + if aVal.Type() == reflect.TypeFor[[]string]() && (bVal.Kind() == reflect.Slice || bVal.Kind() == reflect.Array) { strSlice := make([]string, bVal.Len()) ok := true for i := 0; i < bVal.Len(); i++ {