Skip to content

Commit

Permalink
Linted the code to follow the formatting
Browse files Browse the repository at this point in the history
    - imports changed
    - outdented the code from the else block due to break statement in
      if block
    - removed extra blank line for consistent formatting
  • Loading branch information
Kannav02 committed Oct 24, 2024
1 parent 18e4dca commit f806080
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions internal/server/websocketServer.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,11 +137,9 @@ func (s *WebsocketServer) WebsocketHandler(w http.ResponseWriter, r *http.Reques
if websocket.IsCloseError(err, errs...) {
slog.Info("Gracefully Exited")
break
} else {
slog.Error("Error reading message", slog.Any("error", err))
break
}

slog.Error("Error reading message", slog.Any("error", err))
break
}

if messageType == websocket.CloseMessage {
Expand Down Expand Up @@ -194,7 +192,6 @@ func (s *WebsocketServer) WebsocketHandler(w http.ResponseWriter, r *http.Reques
resp := <-s.ioChan
if err := s.processResponse(conn, diceDBCmd, resp); err != nil {
break

}
}
}
Expand Down

0 comments on commit f806080

Please sign in to comment.