diff options
author | Abyss777 <abyss@fox5.ru> | 2017-08-15 15:26:49 +0500 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2017-08-15 15:26:49 +0500 |
commit | 9b9c715cf0d9604be71a35e5e6e5428a3a891ba9 (patch) | |
tree | 502f9ba4a0bcf9c45d2be18da0e397eed4fe8e5a | |
parent | 60dea5494b10f52433166a8785edc12860679bc3 (diff) | |
download | trackermap-server-9b9c715cf0d9604be71a35e5e6e5428a3a891ba9.tar.gz trackermap-server-9b9c715cf0d9604be71a35e5e6e5428a3a891ba9.tar.bz2 trackermap-server-9b9c715cf0d9604be71a35e5e6e5428a3a891ba9.zip |
Remove intermediate variable
-rw-r--r-- | src/org/traccar/reports/ReportUtils.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/org/traccar/reports/ReportUtils.java b/src/org/traccar/reports/ReportUtils.java index 91dc2e019..75f300b1d 100644 --- a/src/org/traccar/reports/ReportUtils.java +++ b/src/org/traccar/reports/ReportUtils.java @@ -304,8 +304,7 @@ public final class ReportUtils { int startTripIndex = -1; int startParkingIndex = deviceState.getMotionState() ? -1 : 0; for (int i = 0; i < positions.size(); i++) { - boolean isMoving = isMoving(positions, i, tripsConfig, speedThreshold); - positions.get(i).set(Position.KEY_MOTION, isMoving); + positions.get(i).set(Position.KEY_MOTION, isMoving(positions, i, tripsConfig, speedThreshold)); Event event = motionHandler.updateMotionState(deviceState, positions.get(i)); if (startParkingIndex == -1 && deviceState.getMotionState() && deviceState.getMotionPosition() != null) { |