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/textnotice/textnotice.go b/tools/compliance/cmd/textnotice/textnotice.go index 9e9229f..58afb48 100644 --- a/tools/compliance/cmd/textnotice/textnotice.go +++ b/tools/compliance/cmd/textnotice/textnotice.go
@@ -192,7 +192,7 @@ return fmt.Errorf("Unable to read license text file(s) for %q: %v\n", files, err) } - if 0 < len(ctx.title) { + if len(ctx.title) > 0 { fmt.Fprintf(ctx.stdout, "%s\n\n", ctx.title) } for h := range ni.Hashes() {