aboutsummaryrefslogtreecommitdiff
path: root/internal/postgres
diff options
context:
space:
mode:
Diffstat (limited to 'internal/postgres')
-rw-r--r--internal/postgres/search_test.go4
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