From 9b9c715cf0d9604be71a35e5e6e5428a3a891ba9 Mon Sep 17 00:00:00 2001 From: Abyss777 Date: Tue, 15 Aug 2017 15:26:49 +0500 Subject: Remove intermediate variable --- src/org/traccar/reports/ReportUtils.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') 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) { -- cgit v1.2.3