From fc3106e742beba6aeaebb66083380c6b9e1082d0 Mon Sep 17 00:00:00 2001 From: nativbarak Date: Sun, 4 Feb 2018 17:21:51 +0200 Subject: Code refactoring --- src/org/traccar/WebDataHandler.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/org') diff --git a/src/org/traccar/WebDataHandler.java b/src/org/traccar/WebDataHandler.java index 10fac2e41..a4c95aa3c 100644 --- a/src/org/traccar/WebDataHandler.java +++ b/src/org/traccar/WebDataHandler.java @@ -121,7 +121,7 @@ public class WebDataHandler extends BaseDataHandler { @Override protected Position handlePosition(Position position) { - if(json){ + if (json) { AsyncHttpClient.BoundRequestBuilder requestBuilder = Context.getAsyncHttpClient().preparePost(url); requestBuilder.setBodyEncoding(StandardCharsets.UTF_8.name()); @@ -129,7 +129,8 @@ public class WebDataHandler extends BaseDataHandler { setContent(position, requestBuilder); requestBuilder.execute(); - }else { + + } else { Context.getAsyncHttpClient().prepareGet(formatRequest(position)).execute(); } return position; -- cgit v1.2.3