fixup
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
parent
67dbbd03ee
commit
d60fb7914b
2
toml.go
2
toml.go
@ -56,7 +56,7 @@ func (c *tomlCodec) ReadBody(conn io.Reader, b interface{}) error {
|
|||||||
buf, err := ioutil.ReadAll(conn)
|
buf, err := ioutil.ReadAll(conn)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
} else if len(buf) {
|
} else if len(buf) == 0 {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
m.Data = buf
|
m.Data = buf
|
||||||
|
Loading…
Reference in New Issue
Block a user