add nolint.

This commit is contained in:
Miroslav Šedivý 2020-10-28 22:36:30 +01:00
parent e1ef49c46a
commit 7d5df0346e

View File

@ -34,6 +34,7 @@ func New(conf *config.Server, webSocketHandler types.WebSocketHandler) *Server {
router.Get("/ws", func(w http.ResponseWriter, r *http.Request) {
if webSocketHandler.Upgrade(w, r) != nil {
//nolint
w.Write([]byte("unable to upgrade your connection to a websocket"))
}
})