commit | e9b38c175ae19afc82b071822404c33e8f11c295 | [log] [tgz] |
---|---|---|
author | Bob Badour <bbadour@google.com> | Wed Feb 09 15:56:59 2022 -0800 |
committer | Bob Badour <bbadour@google.com> | Wed Feb 09 15:56:59 2022 -0800 |
tree | b786667eab84f52d2e80bda59ac4f4de7b4bcb2b | |
parent | bcb81e74fe61950e2d1a8820af031c0055113120 [diff] [blame] |
Greater-than zero is more idiomatic. Test: m all Change-Id: I6000d937b98c84226a347b69c69b333a15beb355
diff --git a/tools/compliance/readgraph_test.go b/tools/compliance/readgraph_test.go index db52fb1..bcf9f39 100644 --- a/tools/compliance/readgraph_test.go +++ b/tools/compliance/readgraph_test.go
@@ -94,7 +94,7 @@ } return } - if 0 < len(tt.expectedError) { + if len(tt.expectedError) > 0 { t.Errorf("unexpected success: got no error, want %q err", tt.expectedError) return }