all repos — searchix @ 0e24d9cde2f9a9e94315fa463d6503ddd64255c2

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

refactor: reduce use of pointers in particular, Source can no longer be nil. Instantiate a Source with an Importer of All instead

Alan Pearce
commit

0e24d9cde2f9a9e94315fa463d6503ddd64255c2

parent

05838942b9468dd1efb6d295a206730fa82264c0

1 file changed, 1 insertion(+), 1 deletion(-)

changed files
M internal/nix/importable.gointernal/nix/importable.go
@@ -16,7 +16,7 @@ func GetKey(i Importable) string {
return i.BleveType() + "/" + i.GetSource() + "/" + i.GetName() } -func MakeKey(source *config.Source, id string) string { +func MakeKey(source config.Source, id string) string { return source.Importer.Singular() + "/" + source.Key + "/" + id }