all repos — searchix @ 08a05b653047f4b45d1a4213e0af94b3dda1d4e0

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

refactor(importer): use interfaces, not generics

Alan Pearce
commit

08a05b653047f4b45d1a4213e0af94b3dda1d4e0

parent

9327a79febcce1056f2935918a947adb6f80a5c8

1 file changed, 0 insertions(+), 12 deletions(-)

changed files
M internal/nix/importable.gointernal/nix/importable.go
@@ -20,18 +20,6 @@ func MakeKey(source *config.Source, id string) string {
return source.Importer.Singular() + "/" + source.Key + "/" + id } -func ToGenericChannel[I Importable](in <-chan I) <-chan Importable { - out := make(chan Importable) - go func() { - for i := range in { - out <- i - } - close(out) - }() - - return out -} - func init() { gob.Register(Option{}) gob.Register(Package{})