test(contractdocs): plain condition for the released-set check (staticcheck QF1001)
ci / shared (pull_request) Successful in 12s
ci / test (pull_request) Successful in 7m12s
ci / image (pull_request) Skipped

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Sharang ParnerkarandClaude Opus 5.5 committed 2026-11-16 22:14:12 +01:00
1 parent 290fa64f6a
commit 0271c99ab7
1 file changed
+1 -1
@@ -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 {