test(scanner): drop the unused resultStore.saved helper

staticcheck U1000: the tests read store.savedResults directly, so the helper
has no callers.
This commit is contained in:
Bug Fixer
2026-12-03 07:48:24 +00:00
parent aa83c9cc6b
commit 49863a070b
-6
View File
@@ -364,12 +364,6 @@ func (m *resultStore) GetScanResult(context.Context, string, string, string) (*m
return m.scan, nil
}
func (m *resultStore) saved() []*metadata.ScanResult {
m.mu.Lock()
defer m.mu.Unlock()
return append([]*metadata.ScanResult(nil), m.savedResults...)
}
func TestScanPackage_InfrastructureErrorIsMarked(t *testing.T) {
store := &stubMetadataStore{}
mgr := newTestManager(t, store)