style: re-format with golangci-lint 2.8.0
2 files changed, 20 insertions(+), 6 deletions(-)
M internal/importer/options.go → internal/importer/options.go
@@ -105,10 +105,18 @@ case string: s := decl link, err := MakeChannelLink(i.source.Repo, s) if err != nil { - i.errs = append(i.errs, - fault.Wrap(err, fmsg.Withf("could not make a channel link for channel %s, revision %s and subpath %s", - i.source.Channel, i.source.Repo.Revision, s, - ))) + i.errs = append( + i.errs, + fault.Wrap( + err, + fmsg.Withf( + "could not make a channel link for channel %s, revision %s and subpath %s", + i.source.Channel, + i.source.Repo.Revision, + s, + ), + ), + ) continue }@@ -121,7 +129,10 @@ URL: v["url"].(string), } decls = append(decls, link) default: - i.errs = append(i.errs, fault.Newf("unexpected declaration type %s", reflect.TypeOf(decl).String())) + i.errs = append( + i.errs, + fault.Newf("unexpected declaration type %s", reflect.TypeOf(decl).String()), + ) continue }
M internal/importer/package.go → internal/importer/package.go
@@ -317,7 +317,10 @@ } else { subpath, line, _ := strings.Cut(position, ":") definition, err = i.source.Repo.GetFileURL(subpath, line) if err != nil { - i.errs = append(i.errs, fault.Wrap(err, fmsg.Withf("failed to make repo URL for package %s", pkgName))) + i.errs = append( + i.errs, + fault.Wrap(err, fmsg.Withf("failed to make repo URL for package %s", pkgName)), + ) } } }