refactor: silence gopls hints (#2692)

This commit is contained in:
CatsDeservePets authored and GitHub committed 2026-09-28 22:49:11 +02:00
1 parent 1a1cbc992e
commit 1f31d6634e
2 files changed
+4 -8

No files matched your search

+2 -4
View File
@@ -127,8 +127,7 @@ var (
func getOptWords(opts any) (optWords []string) {
t := reflect.TypeOf(opts)
for i := range t.NumField() {
field := t.Field(i)
for field := range t.Fields() {
switch field.Type.Kind() {
case reflect.Map:
continue
@@ -145,8 +144,7 @@ func getOptWords(opts any) (optWords []string) {
func getLocalOptWords(localOpts any) (localOptWords []string) {
t := reflect.TypeOf(localOpts)
for i := range t.NumField() {
field := t.Field(i)
for field := range t.Fields() {
name := field.Name
if field.Type.Kind() != reflect.Map {
continue