mirror of
https://github.com/tendermint/tendermint.git
synced 2026-05-28 18:10:20 +00:00
bug fixes in binary
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -47,7 +47,7 @@ func ReadStringSafe(r io.Reader) (String, error) {
|
||||
|
||||
func ReadString(r io.Reader) String {
|
||||
str, err := ReadStringSafe(r)
|
||||
if r != nil {
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
return str
|
||||
|
||||
Reference in New Issue
Block a user