diff options
| author | Jonathan Amsterdam <jba@google.com> | 2026-03-28 14:40:24 -0400 |
|---|---|---|
| committer | Jonathan Amsterdam <jba@google.com> | 2026-03-30 13:40:47 -0700 |
| commit | 553cc7bbf577a297ad6e78870316bdf5e4c19e04 (patch) | |
| tree | ca43ec10c3dad724a72312f1afe80026c9d1ba36 /internal/fetch | |
| parent | ed9f544b260433d32a59bb7e9b52d7cafda78eec (diff) | |
| download | go-x-pkgsite-553cc7bbf577a297ad6e78870316bdf5e4c19e04.tar.xz | |
all.bash: re-enable unparam
It's working now.
Also fix, issues that it detected.
Change-Id: Ifd3fe5baf9a56d31bafe099bf4b38e02356bde21
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/760582
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
kokoro-CI: kokoro <noreply+kokoro@google.com>
Reviewed-by: Ethan Lee <ethanalee@google.com>
Diffstat (limited to 'internal/fetch')
| -rw-r--r-- | internal/fetch/load.go | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/internal/fetch/load.go b/internal/fetch/load.go index bde5469d..e8f03316 100644 --- a/internal/fetch/load.go +++ b/internal/fetch/load.go @@ -51,7 +51,8 @@ func (bpe *BadPackageError) Error() string { return bpe.Err.Error() } // If a package is fine except that its documentation is too large, loadPackage // returns a goPackage whose err field is a non-nil error with godoc.ErrTooLarge in its chain. func loadPackage(ctx context.Context, contentDir fs.FS, goFilePaths []string, innerPath string, - sourceInfo *source.Info, modInfo *godoc.ModuleInfo) (_ *goPackage, err error) { + sourceInfo *source.Info, modInfo *godoc.ModuleInfo, +) (_ *goPackage, err error) { defer derrors.Wrap(&err, "loadPackage(ctx, zipGoFiles, %q, sourceInfo, modInfo)", innerPath) ctx, span := trace.StartSpan(ctx, "fetch.loadPackage") defer span.End() @@ -185,7 +186,7 @@ func loadPackage(ctx context.Context, contentDir fs.FS, goFilePaths []string, in // loadPackageMeta loads only the parts of a package that are needed to load a // packageMeta. -func loadPackageMeta(ctx context.Context, contentDir fs.FS, goFilePaths []string, innerPath string, modInfo *godoc.ModuleInfo) (_ *packageMeta, err error) { +func loadPackageMeta(_ context.Context, contentDir fs.FS, goFilePaths []string, innerPath string, modInfo *godoc.ModuleInfo) (_ *packageMeta, err error) { defer derrors.Wrap(&err, "loadPackageMeta(ctx, zipGoFiles, %q, sourceInfo, modInfo)", innerPath) // Make a map with all the zip file contents. @@ -285,7 +286,8 @@ var httpPost = http.Post // If it returns an error with ErrTooLarge in its chain, the other return values // are still valid. func loadPackageForBuildContext(ctx context.Context, files map[string][]byte, innerPath string, sourceInfo *source.Info, modInfo *godoc.ModuleInfo) ( - name string, imports []string, synopsis string, source []byte, api []*internal.Symbol, err error) { + name string, imports []string, synopsis string, source []byte, api []*internal.Symbol, err error, +) { modulePath := modInfo.ModulePath defer derrors.Wrap(&err, "loadPackageWithBuildContext(files, %q, %q, %+v)", innerPath, modulePath, sourceInfo) |
