Skip to content

Commit 001f757

Browse files
EconoBenclaude
andcommitted
fix(lint): simplify TextTerms append in remote engine
Replace loop with variadic append as suggested by gosimple linter. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 0e12e62 commit 001f757

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

internal/remote/engine.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -647,9 +647,7 @@ func buildSearchQueryString(q *search.Query) string {
647647

648648
var parts []string
649649

650-
for _, term := range q.TextTerms {
651-
parts = append(parts, term)
652-
}
650+
parts = append(parts, q.TextTerms...)
653651
for _, addr := range q.FromAddrs {
654652
parts = append(parts, "from:"+addr)
655653
}

0 commit comments

Comments
 (0)