From 0271c99ab7d2ad7c3f75a910a5c5783cf242b7c8 Mon Sep 17 00:00:00 2001 From: Sharang Parnerkar <30073382+mighty840@users.noreply.github.com> Date: Mon, 16 Nov 2026 22:14:12 +0100 Subject: [PATCH] test(contractdocs): plain condition for the released-set check (staticcheck QF1001) Co-Authored-By: Claude Opus 5.5 --- internal/legal/contractdocs/contractdocs_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/legal/contractdocs/contractdocs_test.go b/internal/legal/contractdocs/contractdocs_test.go index 7d38c98..f8a63df 100644 --- a/internal/legal/contractdocs/contractdocs_test.go +++ b/internal/legal/contractdocs/contractdocs_test.go @@ -43,7 +43,7 @@ func TestReleasedSet(t *testing.T) { for _, d := range all { lb := d.Kind == KindLB && strings.HasPrefix(d.Title, "Leistungsbeschreibung ") top := (d.ID == KindAGB || d.ID == KindTOM) && d.Kind == d.ID && d.Title == Title(d.Kind) && d.Date == "09.11.2026" - if want[d.ID] != d.Version || !(lb || top) { + if want[d.ID] != d.Version || (!lb && !top) { t.Errorf("%+v", d) } if Default().Get(d.ID) != d {