Fix some golint errors
- Add comments - Rename variables - Remove unnecessary "else"
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user