refactor(importer): use interfaces, not generics
1 file changed, 0 insertions(+), 12 deletions(-)
changed files
M internal/nix/importable.go → internal/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{})