aboutsummaryrefslogtreecommitdiff
path: root/juick-xmpp-ft/src/main/java/com/juick/components
diff options
context:
space:
mode:
Diffstat (limited to 'juick-xmpp-ft/src/main/java/com/juick/components')
-rw-r--r--juick-xmpp-ft/src/main/java/com/juick/components/controllers/StatusController.java6
1 files changed, 1 insertions, 5 deletions
diff --git a/juick-xmpp-ft/src/main/java/com/juick/components/controllers/StatusController.java b/juick-xmpp-ft/src/main/java/com/juick/components/controllers/StatusController.java
index 16a8aeb4..6d82054a 100644
--- a/juick-xmpp-ft/src/main/java/com/juick/components/controllers/StatusController.java
+++ b/juick-xmpp-ft/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;
}
}