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/cmd/htmlnotice/htmlnotice_test.go b/tools/compliance/cmd/htmlnotice/htmlnotice_test.go index b8bc47f..1b01d16 100644 --- a/tools/compliance/cmd/htmlnotice/htmlnotice_test.go +++ b/tools/compliance/cmd/htmlnotice/htmlnotice_test.go
@@ -678,7 +678,7 @@ } if !inBody { if expectTitle { - if tl := checkTitle(line); 0 < len(tl) { + if tl := checkTitle(line); len(tl) > 0 { if tl != ttle.t { t.Errorf("htmlnotice: unexpected title: got %q, want %q", tl, ttle.t) }