diff options
author | nativbarak <nativ@globekeeper.com> | 2018-02-04 17:21:51 +0200 |
---|---|---|
committer | nativbarak <nativ@globekeeper.com> | 2018-02-04 17:21:51 +0200 |
commit | fc3106e742beba6aeaebb66083380c6b9e1082d0 (patch) | |
tree | 4028a0b6dba84f5430a7d1e15e2b9f53c85df3bc /src/org/traccar | |
parent | dc092138fc69bb5f8f137be435309d3945c49b13 (diff) | |
download | trackermap-server-fc3106e742beba6aeaebb66083380c6b9e1082d0.tar.gz trackermap-server-fc3106e742beba6aeaebb66083380c6b9e1082d0.tar.bz2 trackermap-server-fc3106e742beba6aeaebb66083380c6b9e1082d0.zip |
Code refactoring
Diffstat (limited to 'src/org/traccar')
-rw-r--r-- | src/org/traccar/WebDataHandler.java | 5 |
1 files changed, 3 insertions, 2 deletions
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; |