mirror of
https://github.com/tendermint/tendermint.git
synced 2026-07-20 15:02:33 +00:00
bug fixes in binary
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
+1
-1
@@ -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