diff options
| author | Hana Kim <hyangah@gmail.com> | 2026-03-05 22:49:36 -0500 |
|---|---|---|
| committer | Hyang-Ah Hana Kim <hyangah@gmail.com> | 2026-03-27 08:57:35 -0700 |
| commit | 9174032bc85380974ae1ca0f1d18a1b76f775e3a (patch) | |
| tree | 6439212df40e0b3e96f2c026878c779799f21437 /internal/fetch | |
| parent | 2f49fcf74bb99c4d3870668e0713a4f70fa99e1b (diff) | |
| download | go-x-pkgsite-9174032bc85380974ae1ca0f1d18a1b76f775e3a.tar.xz | |
all: run go fix -stringsseq
Change-Id: Id22b6fbc926c516043a2a9869ce9042dedebc725
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/753433
Reviewed-by: Jonathan Amsterdam <jba@google.com>
kokoro-CI: kokoro <noreply+kokoro@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Diffstat (limited to 'internal/fetch')
| -rw-r--r-- | internal/fetch/package.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/fetch/package.go b/internal/fetch/package.go index eacfc6f8..fe300dc9 100644 --- a/internal/fetch/package.go +++ b/internal/fetch/package.go @@ -375,7 +375,7 @@ func extractPackageMetas(ctx context.Context, modulePath, resolvedVersion string // working Go programs. We continue to ignore the "." and "testdata" // cases, but we've seen valid Go packages with "_", so we accept those. func ignoredByGoTool(importPath string) bool { - for _, el := range strings.Split(importPath, "/") { + for el := range strings.SplitSeq(importPath, "/") { if strings.HasPrefix(el, ".") || el == "testdata" { return true } |
