aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol
diff options
context:
space:
mode:
authorJan-Piet Mens <jpmens@gmail.com>2017-06-15 08:23:00 +0200
committerJan-Piet Mens <jpmens@gmail.com>2017-06-15 08:23:00 +0200
commitbb9dac7fb639788cb210c27274a9481d37374eed (patch)
tree745369a62423a3e990ef0253cdcef54794051948 /src/org/traccar/protocol
parent8a5f318ed92e4bb6411c0883d1ce73dd41e9a7bc (diff)
downloadtraccar-server-bb9dac7fb639788cb210c27274a9481d37374eed.tar.gz
traccar-server-bb9dac7fb639788cb210c27274a9481d37374eed.tar.bz2
traccar-server-bb9dac7fb639788cb210c27274a9481d37374eed.zip
omit booleans
Diffstat (limited to 'src/org/traccar/protocol')
-rw-r--r--src/org/traccar/protocol/OwnTracksProtocolDecoder.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/org/traccar/protocol/OwnTracksProtocolDecoder.java b/src/org/traccar/protocol/OwnTracksProtocolDecoder.java
index 34a61da89..ea604f4ac 100644
--- a/src/org/traccar/protocol/OwnTracksProtocolDecoder.java
+++ b/src/org/traccar/protocol/OwnTracksProtocolDecoder.java
@@ -91,13 +91,11 @@ public class OwnTracksProtocolDecoder extends BaseProtocolDecoder {
position.setTime(new Date(root.getJsonNumber("tst").longValue() * 1000));
- boolean haveTopic = root.containsKey("topic");
- boolean haveTid = root.containsKey("tid");
String uniqueId;
- if (haveTopic) {
+ if (root.containsKey("topic")) {
uniqueId = root.getString("topic");
- if (haveTid) {
+ if (root.containsKey("tid")) {
position.set("tid", root.getString("tid"));
}
} else {