fix(ci): restore certs variable declaration in discovery repo test

The previous commit replaced `certs, total, err :=` with `_, total, err :=`
but certs was used on a subsequent line. Keep the declaration and suppress
the SA4006 warning with a blank assignment.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Shankar
2026-03-27 23:22:00 -04:00
parent cea55b3933
commit a9e0cc8d84
+2 -1
View File
@@ -1188,10 +1188,11 @@ func TestDiscoveryRepository_DiscoveredCertCRUD(t *testing.T) {
}
// ListDiscovered
_, total, err := repo.ListDiscovered(ctx, &repository.DiscoveryFilter{Page: 1, PerPage: 10})
certs, total, err := repo.ListDiscovered(ctx, &repository.DiscoveryFilter{Page: 1, PerPage: 10})
if err != nil {
t.Fatalf("ListDiscovered failed: %v", err)
}
_ = certs // used in subsequent calls
if total != 1 {
t.Errorf("total = %d, want 1", total)
}