Greater-than zero is more idiomatic.
Test: m all Change-Id: I6000d937b98c84226a347b69c69b333a15beb355
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user