From 0c5c691a6a8654f4ffb1156063ed78a0e2d90e10 Mon Sep 17 00:00:00 2001 From: spekary Date: Wed, 16 Mar 2022 19:55:02 -0700 Subject: [PATCH] Fixing lint errors --- attributes.go | 3 +-- tag_test.go | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/attributes.go b/attributes.go index 89a6c58..ac31bf1 100644 --- a/attributes.go +++ b/attributes.go @@ -743,9 +743,8 @@ func ValueString(i interface{}) string { case bool: if v { return "" // boolean true - } else { - return FalseValue // Our special value to indicate to NOT print the attribute at all } + return FalseValue // Our special value to indicate to NOT print the attribute at all case string: return v case int: diff --git a/tag_test.go b/tag_test.go index 47b0c55..48e1386 100644 --- a/tag_test.go +++ b/tag_test.go @@ -18,9 +18,8 @@ func (b *errBuffer) Write(p []byte) (n int, err error) { l := b.cap - b.buf.Len() n, _ = b.Write(p[:l]) return n, fmt.Errorf("out of memory") - } else { - return b.buf.Write(p) } + return b.buf.Write(p) } func newErrBuf(cap int) *errBuffer {