test(contractdocs): plain condition for the released-set check (staticcheck QF1001)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
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 {
|
||||
|
||||
Reference in new issue
Block a user