Skip to content

Commit

Permalink
Fixing lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
spekary committed Mar 17, 2022
1 parent 36dc0de commit 0c5c691
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions attributes.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
3 changes: 1 addition & 2 deletions tag_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 0c5c691

Please sign in to comment.