From 49863a070b6cc7c0117cb5b0d6b4fcaf358f57e6 Mon Sep 17 00:00:00 2001 From: Bug Fixer Date: Thu, 3 Dec 2026 07:48:24 +0000 Subject: [PATCH] test(scanner): drop the unused resultStore.saved helper staticcheck U1000: the tests read store.savedResults directly, so the helper has no callers. --- pkg/scanner/scanner_test.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/pkg/scanner/scanner_test.go b/pkg/scanner/scanner_test.go index 6d955b7..882d670 100644 --- a/pkg/scanner/scanner_test.go +++ b/pkg/scanner/scanner_test.go @@ -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)