aboutsummaryrefslogtreecommitdiff
path: root/juick-xmpp-bot/src/main
diff options
context:
space:
mode:
authorGravatar Alexander Alexeev2016-11-26 04:17:17 +0700
committerGravatar Alexander Alexeev2016-11-26 04:17:17 +0700
commit46a040d6ff07e2581ae461ac60d2abc736cc7c6d (patch)
tree13bd27c1c12b6846e780a54cc87e7a7b17639d0b /juick-xmpp-bot/src/main
parent55b09a6a3bc4a21201189d855e140308f05016fb (diff)
status constants
Diffstat (limited to 'juick-xmpp-bot/src/main')
-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;
}
}