test(intake): plain error comparison in the store test
ci / shared (pull_request) Successful in 12s
ci / test (pull_request) Successful in 7m33s
ci / image (pull_request) Skipped

staticcheck flagged the double negation (tenant-registry#119).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014aRnCGqELxoix5TfpX8Ejf
This commit is contained in:
Sharang ParnerkarandClaude Opus 5.5 committed 2026-11-10 09:53:36 +01:00
1 parent bf83d0625e
commit cc4675c85d
1 file changed
+1 -1
+1 -1
View File
@@ -65,7 +65,7 @@ func TestIntakeStore(t *testing.T) {
{999999, store.IntakeWaiting, "", false, store.ErrNotFound},
} {
added, err := receipt(c.id, c.status, c.reason)
if added != c.added || !errors.Is(err, c.err) && !(c.err == nil && err == nil) {
if added != c.added || !errors.Is(err, c.err) {
t.Fatalf("%d %s %s: %v %v", c.id, c.status, c.reason, added, err)
}
}