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/postgres/search_test.go | |
| 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/postgres/search_test.go')
| -rw-r--r-- | internal/postgres/search_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/postgres/search_test.go b/internal/postgres/search_test.go index 915ad26e..9fd1db67 100644 --- a/internal/postgres/search_test.go +++ b/internal/postgres/search_test.go @@ -273,8 +273,8 @@ func TestPathTokens(t *testing.T) { } var got2 []string - parts := strings.Split(tsv, "'") - for _, p := range parts { + parts := strings.SplitSeq(tsv, "'") + for p := range parts { p = strings.TrimSpace(p) if p == "" { continue |
