1
0
mirror of https://github.com/astaxie/beego.git synced 2025-06-12 08:10:39 +00:00

add check ineffect and gofmt

This commit is contained in:
astaxie
2017-04-28 21:38:08 +08:00
parent f311ae9ebe
commit 3e29078f68
6 changed files with 24 additions and 13 deletions

View File

@ -520,9 +520,9 @@ func (b *BeegoHTTPRequest) Bytes() ([]byte, error) {
return nil, err
}
b.body, err = ioutil.ReadAll(reader)
} else {
b.body, err = ioutil.ReadAll(resp.Body)
return b.body, err
}
b.body, err = ioutil.ReadAll(resp.Body)
return b.body, err
}