refactor: reduce use of pointers in particular, Source can no longer be nil. Instantiate a Source with an Importer of All instead
1 file changed, 2 insertions(+), 2 deletions(-)
changed files
M internal/fetcher/nixpkgs-channel.go → internal/fetcher/nixpkgs-channel.go
@@ -13,7 +13,7 @@ "github.com/Southclaws/fault/fmsg" ) type NixpkgsChannelFetcher struct { - Source *config.Source + Source config.Source *Options }@@ -24,7 +24,7 @@ return url, fault.Wrap(err, fmsg.Withf("error creating URL")) } func NewNixpkgsChannelFetcher( - source *config.Source, + source config.Source, options *Options, ) (*NixpkgsChannelFetcher, error) { switch source.Importer {