all repos — searchix @ e766c8d6e4434b303246522ad29c4bc328de56ba

Search engine for NixOS, nix-darwin, home-manager and NUR users

refactor: address linter issues

Alan Pearce
commit

e766c8d6e4434b303246522ad29c4bc328de56ba

parent

a34ba86c2c899bbf2902c4c99b817a9692c3294f

1 file changed, 3 insertions(+), 3 deletions(-)

changed files
M internal/importer/options.gointernal/importer/options.go
@@ -122,10 +122,10 @@
continue } kv := mv.Value.(jstream.KV) - x := kv.Value.(map[string]interface{}) + x := kv.Value.(map[string]any) var decls []*nix.Link - for _, decl := range x["declarations"].([]interface{}) { + for _, decl := range x["declarations"].([]any) { switch decl := reflect.ValueOf(decl); decl.Kind() { case reflect.String: s := decl.String()
@@ -139,7 +139,7 @@ continue
} decls = append(decls, link) case reflect.Map: - v := decl.Interface().(map[string]interface{}) + v := decl.Interface().(map[string]any) link := nix.Link{ Name: v["name"].(string), URL: v["url"].(string),