apply De Morgan to linked-issues test guard
- SHA
09760add10e659cd7fe3a5651d4e549285ae2506- Parents
-
a2daaa7 - Tree
1ce55e9
09760ad
09760add10e659cd7fe3a5651d4e549285ae2506a2daaa7
1ce55e9| Status | File | + | - |
|---|---|---|---|
| M |
internal/pulls/linked_issues_test.go
|
1 | 1 |
internal/pulls/linked_issues_test.gomodified@@ -26,7 +26,7 @@ func TestParseLinkedIssues(t *testing.T) { | ||
| 26 | 26 | for _, c := range cases { |
| 27 | 27 | t.Run(c.name, func(t *testing.T) { |
| 28 | 28 | got := parseLinkedIssues(c.body) |
| 29 | - if !reflect.DeepEqual(got, c.want) && !(len(got) == 0 && len(c.want) == 0) { | |
| 29 | + if !reflect.DeepEqual(got, c.want) && (len(got) != 0 || len(c.want) != 0) { | |
| 30 | 30 | t.Errorf("body %q: got %v, want %v", c.body, got, c.want) |
| 31 | 31 | } |
| 32 | 32 | }) |