build: modernize Go code with go fix for go1.25

This commit is contained in:
Nick Craig-Wood
2026-02-18 12:11:52 +00:00
parent cf97f250df
commit b2866f0291
36 changed files with 118 additions and 176 deletions
+1 -1
View File
@@ -163,7 +163,7 @@ type Item struct {
// struct, otherwise they will be embedded as they are.
func Items(opt any) (items []Item, err error) {
def := reflect.ValueOf(opt)
if def.Kind() != reflect.Ptr {
if def.Kind() != reflect.Pointer {
return nil, errors.New("argument must be a pointer")
}
def = def.Elem() // indirect the pointer