Greater-than zero is more idiomatic.

Test: m all
Change-Id: I6000d937b98c84226a347b69c69b333a15beb355
This commit is contained in:
Bob Badour
2022-02-09 15:56:59 -08:00
parent bcb81e74fe
commit e9b38c175a
6 changed files with 13 additions and 13 deletions

View File

@@ -94,7 +94,7 @@ func TestReadLicenseGraph(t *testing.T) {
}
return
}
if 0 < len(tt.expectedError) {
if len(tt.expectedError) > 0 {
t.Errorf("unexpected success: got no error, want %q err", tt.expectedError)
return
}