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/manpages/manpages.go → internal/manpages/manpages.go
@@ -40,7 +40,7 @@ } func (m *URLMap) Update( ctx context.Context, - source *config.Source, + source config.Source, ) error { if !source.Manpages.Enable { return fault.New("manpages not enabled for this source")@@ -109,7 +109,7 @@ return url, true } -func makeManpageURL(source *config.Source) (string, error) { +func makeManpageURL(source config.Source) (string, error) { url, err := source.Repo.GetRawFileURL(source.Manpages.Path) if err != nil { return "", fault.Wrap(err, fmsg.With("failed to join manpage URL"))