2
0

Fix some golint errors

- Add comments
- Rename variables
- Remove unnecessary "else"
This commit is contained in:
Jack Christensen
2016-03-29 15:18:09 -05:00
parent 129ff96567
commit 04e9fbcc55
7 changed files with 36 additions and 19 deletions
+1 -1
View File
@@ -37,7 +37,7 @@ func (r *ValueReader) ReadByte() byte {
return 0
}
r.valueBytesRemaining -= 1
r.valueBytesRemaining--
if r.valueBytesRemaining < 0 {
r.Fatal(errors.New("read past end of value"))
return 0