mirror of
https://github.com/anchore/syft.git
synced 2026-05-20 04:05:24 +02:00
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:
parent
722e3f267b
commit
26e87c7cd3
@ -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)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user