We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d67002 commit 1e1f4d1Copy full SHA for 1e1f4d1
src/main/java/scorekeep/GameModel.java
@@ -21,16 +21,12 @@ public class GameModel {
21
private SessionModel sessionModel = new SessionModel();
22
23
public void saveGame(Game game) throws SessionNotFoundException {
24
- try {
25
- // check session
26
- String sessionId = game.getSession();
27
- if (sessionModel.loadSession(sessionId) == null ) {
28
- throw new SessionNotFoundException(sessionId);
29
- }
30
- mapper.save(game);
31
- } catch (Exception e) {
32
- throw e;
+ // check session
+ String sessionId = game.getSession();
+ if (sessionModel.loadSession(sessionId) == null ) {
+ throw new SessionNotFoundException(sessionId);
33
}
+ mapper.save(game);
34
35
36
public Game loadGame(String gameId) throws GameNotFoundException {
0 commit comments