2
0
Cleanups suggested by gometalinter tools.
This commit is contained in:
Martin Hamrle
2016-08-30 19:59:16 +02:00
parent 2508faa9ce
commit 9f6b99e332
14 changed files with 84 additions and 90 deletions
+2 -2
View File
@@ -62,7 +62,7 @@ func (r *msgReader) readByte() byte {
return 0
}
r.msgBytesRemaining -= 1
r.msgBytesRemaining--
if r.msgBytesRemaining < 0 {
r.fatal(errors.New("read past end of message"))
return 0
@@ -216,7 +216,7 @@ func (r *msgReader) readString(countI32 int32) string {
s = string(buf)
r.reader.Discard(count)
} else {
buf := make([]byte, int(count))
buf := make([]byte, count)
_, err := io.ReadFull(r.reader, buf)
if err != nil {
r.fatal(err)