From 46a040d6ff07e2581ae461ac60d2abc736cc7c6d Mon Sep 17 00:00:00 2001 From: Alexander Alexeev Date: Sat, 26 Nov 2016 04:17:17 +0700 Subject: status constants --- .../main/java/com/juick/components/controllers/StatusController.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'juick-crosspost') diff --git a/juick-crosspost/src/main/java/com/juick/components/controllers/StatusController.java b/juick-crosspost/src/main/java/com/juick/components/controllers/StatusController.java index 348cfed1..3d8636fc 100644 --- a/juick-crosspost/src/main/java/com/juick/components/controllers/StatusController.java +++ b/juick-crosspost/src/main/java/com/juick/components/controllers/StatusController.java @@ -21,7 +21,6 @@ public class StatusController { @RequestMapping(method = RequestMethod.GET, value = "/", produces = MediaType.APPLICATION_JSON_UTF8_VALUE) public Status status() { - String status = crosspost != null ? "OK" : "Fail"; - return new Status(status); + return crosspost != null ? Status.OK : Status.FAIL; } } -- cgit v1.2.3