Skip to content

Commit

Permalink
Fix linter warnings
Browse files Browse the repository at this point in the history
Signed-off-by: Derek Collison <derek@nats.io>
  • Loading branch information
derekcollison committed May 26, 2020
1 parent 6512038 commit f15c190
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions nats.go
Expand Up @@ -2763,11 +2763,11 @@ func (nc *Conn) publish(subj, reply string, hdr, data []byte) error {
if hdr != nil {
if len(hdr) > 0 {
for l := len(hdr); l > 0; l /= 10 {
i -= 1
i--
b[i] = digits[l%10]
}
} else {
i -= 1
i--
b[i] = digits[0]
}
mh = append(mh, b[i:]...)
Expand All @@ -2778,11 +2778,11 @@ func (nc *Conn) publish(subj, reply string, hdr, data []byte) error {

if msgSize > 0 {
for l := msgSize; l > 0; l /= 10 {
i -= 1
i--
b[i] = digits[l%10]
}
} else {
i -= 1
i--
b[i] = digits[0]
}

Expand Down

0 comments on commit f15c190

Please sign in to comment.