chore: style fixes from go fix (#10846)

Just `go fix ./...`

Signed-off-by: Jakob Borg <jakob@kastelo.net>
This commit is contained in:
Jakob Borg
2026-08-05 20:23:22 +02:00
committed by GitHub
parent 946e2b83a1
commit 8ea09c0094
144 changed files with 211 additions and 315 deletions
+2 -2
View File
@@ -100,7 +100,7 @@ func fillNil(data any, skipDeprecated bool) {
f := s.Field(i)
for f.Kind() == reflect.Ptr && f.IsZero() && f.CanSet() {
for f.Kind() == reflect.Pointer && f.IsZero() && f.CanSet() {
newValue := reflect.New(f.Type().Elem())
f.Set(newValue)
f = f.Elem()
@@ -157,7 +157,7 @@ func FillNilSlices(data any) error {
vs[i] = strings.TrimSpace(vs[i])
}
rv := reflect.MakeSlice(reflect.TypeOf([]string{}), len(vs), len(vs))
rv := reflect.MakeSlice(reflect.TypeFor[[]string](), len(vs), len(vs))
for i, v := range vs {
rv.Index(i).SetString(v)
}