add nolint.
This commit is contained in:
parent
e1ef49c46a
commit
7d5df0346e
1 changed files with 1 additions and 0 deletions
|
|
@ -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 a new issue