fix(onebot): explicitly ignore resp.Body.Close() error after websocket dial
This commit is contained in:
parent
dff16dbb91
commit
500ce72436
1 changed files with 1 additions and 1 deletions
|
|
@ -195,7 +195,7 @@ func (c *OneBotChannel) connect() error {
|
|||
|
||||
conn, resp, err := dialer.Dial(c.config.WSUrl, header)
|
||||
if resp != nil {
|
||||
resp.Body.Close()
|
||||
_ = resp.Body.Close()
|
||||
}
|
||||
if err != nil {
|
||||
return err
|
||||
|
|
|
|||
Loading…
Reference in a new issue