aboutsummaryrefslogtreecommitdiff
path: root/internal/postgres
diff options
context:
space:
mode:
authorcui fliter <imcusg@gmail.com>2023-07-14 14:14:27 +0800
committerGopher Robot <gobot@golang.org>2023-07-18 05:15:36 +0000
commitb63f7752e803a9208151c97c7fb1cbce1dc84f3e (patch)
tree532221a9613786e2759af9f0ae6460355d9af5da /internal/postgres
parentf159e616582641bdbeb2d6a0018ca4c8c472fbb5 (diff)
downloadgo-x-pkgsite-b63f7752e803a9208151c97c7fb1cbce1dc84f3e.tar.xz
internal: remove repetitive words
Change-Id: Ie5a688c08ba46018f0fa8f5a1af495e9c29fd684 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/509695 TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org> Reviewed-by: Robert Findley <rfindley@google.com> Run-TryBot: Ian Lance Taylor <iant@golang.org> Auto-Submit: Ian Lance Taylor <iant@golang.org> kokoro-CI: kokoro <noreply+kokoro@google.com> Reviewed-by: Bryan Mills <bcmills@google.com> Run-TryBot: Robert Findley <rfindley@google.com>
Diffstat (limited to 'internal/postgres')
-rw-r--r--internal/postgres/search.go2
-rw-r--r--internal/postgres/symbolsearch.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/internal/postgres/search.go b/internal/postgres/search.go
index 5e01323a..e1a7fadc 100644
--- a/internal/postgres/search.go
+++ b/internal/postgres/search.go
@@ -75,7 +75,7 @@ type searchResponse struct {
type searchEvent struct {
// Type is either the searcher name or 'estimate' (the count estimate).
Type string
- // Latency is the duration that that the operation took.
+ // Latency is the duration that the operation took.
Latency time.Duration
// Err is the error returned by the operation, if any.
Err error
diff --git a/internal/postgres/symbolsearch.go b/internal/postgres/symbolsearch.go
index 478a3abc..a89118ae 100644
--- a/internal/postgres/symbolsearch.go
+++ b/internal/postgres/symbolsearch.go
@@ -229,7 +229,7 @@ func multiwordSearchCombinations(q, symbolFilter string) map[string]string {
if strings.Contains(w, "/") || strings.Contains(w, "-") || commonHostnames[w] {
continue
}
- // A symbolFilter was used, and this word does not match match it, so
+ // A symbolFilter was used, and this word does not match it, so
// it can't be the symbol name.
if symbolFilter != "" && w != symbolFilter {
continue