aboutsummaryrefslogtreecommitdiff
path: root/juick-xmpp-bot
diff options
context:
space:
mode:
Diffstat (limited to 'juick-xmpp-bot')
-rw-r--r--juick-xmpp-bot/src/main/java/com/juick/components/controllers/StatusController.java6
1 files changed, 1 insertions, 5 deletions
diff --git a/juick-xmpp-bot/src/main/java/com/juick/components/controllers/StatusController.java b/juick-xmpp-bot/src/main/java/com/juick/components/controllers/StatusController.java
index d30a906d..cbd49009 100644
--- a/juick-xmpp-bot/src/main/java/com/juick/components/controllers/StatusController.java
+++ b/juick-xmpp-bot/src/main/java/com/juick/components/controllers/StatusController.java
@@ -21,10 +21,6 @@ public class StatusController {
@RequestMapping(method = RequestMethod.GET, value = "/", produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
public Status status() {
- if (xmpp != null) {
- String status = "OK";
- return new Status(status);
- }
- return new Status("Error");
+ return xmpp != null ? Status.OK : Status.ERROR;
}
}