mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
add nolint.
This commit is contained in:
parent
e1ef49c46a
commit
7d5df0346e
@ -34,6 +34,7 @@ func New(conf *config.Server, webSocketHandler types.WebSocketHandler) *Server {
|
|||||||
|
|
||||||
router.Get("/ws", func(w http.ResponseWriter, r *http.Request) {
|
router.Get("/ws", func(w http.ResponseWriter, r *http.Request) {
|
||||||
if webSocketHandler.Upgrade(w, r) != nil {
|
if webSocketHandler.Upgrade(w, r) != nil {
|
||||||
|
//nolint
|
||||||
w.Write([]byte("unable to upgrade your connection to a websocket"))
|
w.Write([]byte("unable to upgrade your connection to a websocket"))
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user