fix format string in search results (#4775)

Passing '%q' to format strings for integer types is a go vet error in
recent go versions, and likely a bug.

Signed-off-by: Will Murphy <willmurphyscode@users.noreply.github.com>
This commit is contained in:
Will Murphy 2026-04-14 12:59:44 -04:00 committed by GitHub
parent 722e3f267b
commit 26e87c7cd3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -26,5 +26,5 @@ type SearchResult struct {
} }
func (s SearchResult) String() string { func (s SearchResult) String() string {
return fmt.Sprintf("SearchResult(classification=%q seek=%q length=%q)", s.Classification, s.SeekPosition, s.Length) return fmt.Sprintf("SearchResult(classification=%q seek=%d length=%d)", s.Classification, s.SeekPosition, s.Length)
} }