bug fixes in binary

This commit is contained in:
Jae Kwon
2014-07-08 15:33:26 -07:00
parent 04eb07c26f
commit dca79ab5c1
9 changed files with 288 additions and 39 deletions

View File

@ -50,7 +50,7 @@ func ReadByteSliceSafe(r io.Reader) (ByteSlice, error) {
func ReadByteSlice(r io.Reader) ByteSlice {
bytes, err := ReadByteSliceSafe(r)
if r != nil {
if err != nil {
panic(err)
}
return bytes