diff --git a/src/main/java/com/ntlab/irisserver/resources/SettingsRest.java b/src/main/java/com/ntlab/irisserver/resources/SettingsRest.java index 1b82722..622a98b 100644 --- a/src/main/java/com/ntlab/irisserver/resources/SettingsRest.java +++ b/src/main/java/com/ntlab/irisserver/resources/SettingsRest.java @@ -25,9 +25,8 @@ Room r = rm.getRoom(rid); //部屋がある時、JsonでSettingsの情報を返す - if(r != null) { - Settings settings = r.getSettings(); - return settings; + if (r != null) { + return r.getSettings(); } else { //部屋がなければエラー @@ -69,5 +68,4 @@ throw new WebApplicationException(response.build()); } } - }