Skip to content

Commit

Permalink
Satisfy sonar
Browse files Browse the repository at this point in the history
  • Loading branch information
nateweisz committed Oct 4, 2024
1 parent 846ad27 commit e44792c
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,7 @@ private void frameHandler(Framedata frame, WebSocketHandler webSocketHandler) {
case CloseFrame closeFrame ->
webSocketHandler.handleClose(closeFrame.getCloseCode(), closeFrame.getMessage());
case PingFrame pingFrame -> client.sendFrame(new PongFrame());
case PongFrame pongFrame -> {}
case null, default -> LOGGER.warn("Unhandled frame: {}", frame);
case null, default -> {}
}
}

Expand All @@ -103,7 +102,6 @@ public void stop() {
client.closeBlocking();
} catch (InterruptedException e) {
LOGGER.error("Failed to close websocket client: {}", e.getMessage());
throw new RuntimeException(e);
}
}

Expand Down

0 comments on commit e44792c

Please sign in to comment.