mirror of
https://github.com/diamondburned/arikawa.git
synced 2024-11-17 20:32:48 +00:00
Utils: Removed redundant stdlib errors import
This commit is contained in:
parent
cc530ce7a2
commit
86d32bdbe9
|
@ -9,8 +9,6 @@ import (
|
||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
stderr "errors"
|
|
||||||
|
|
||||||
"github.com/diamondburned/arikawa/utils/json"
|
"github.com/diamondburned/arikawa/utils/json"
|
||||||
"github.com/gorilla/websocket"
|
"github.com/gorilla/websocket"
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
|
@ -125,7 +123,7 @@ func (c *Conn) readLoop() {
|
||||||
b, err := c.handle()
|
b, err := c.handle()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
// Is the error an EOF?
|
// Is the error an EOF?
|
||||||
if stderr.Is(err, io.EOF) {
|
if errors.Is(err, io.EOF) {
|
||||||
// Yes it is, exit.
|
// Yes it is, exit.
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue