test(intake): plain error comparison in the store test
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:
1 parent
bf83d0625e
commit
cc4675c85d
1 file changed
+1
-1
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user