errors: removed excessive debug statements

This commit is contained in:
Artem 2020-03-27 22:34:09 +00:00 committed by Artem Siryk
parent 97291ef25b
commit 86209d10af

2
api.go
View File

@ -33,14 +33,12 @@ func (b *Bot) Raw(method string, payload interface{}) ([]byte, error) {
defer resp.Body.Close()
json, err := ioutil.ReadAll(resp.Body)
fmt.Println(string(json))
data := apiErrorRx.FindStringSubmatch(string(json))
if err != nil {
return []byte{}, wrapSystem(err)
}
if data == nil {
fmt.Printf("ok!\n")
return json, nil
}