diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2018-01-22 19:53:48 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2018-01-22 19:53:48 +1300 |
commit | 48a5bd364b496de70a1a3eff8dd5c57c5d8fec9d (patch) | |
tree | 35a9c364f5659300b535834ccaaed737ed197a61 /test/org/traccar/reports | |
parent | 58ade656e2070387f95984f5851cbc41990467ba (diff) | |
download | trackermap-server-48a5bd364b496de70a1a3eff8dd5c57c5d8fec9d.tar.gz trackermap-server-48a5bd364b496de70a1a3eff8dd5c57c5d8fec9d.tar.bz2 trackermap-server-48a5bd364b496de70a1a3eff8dd5c57c5d8fec9d.zip |
Optimize date assignment
Diffstat (limited to 'test/org/traccar/reports')
-rw-r--r-- | test/org/traccar/reports/ReportUtilsTest.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/test/org/traccar/reports/ReportUtilsTest.java b/test/org/traccar/reports/ReportUtilsTest.java index 4f7a4eb68..0e26c7e75 100644 --- a/test/org/traccar/reports/ReportUtilsTest.java +++ b/test/org/traccar/reports/ReportUtilsTest.java @@ -35,9 +35,7 @@ public class ReportUtilsTest extends BaseTest { Position position = new Position(); - if (time != null) { - position.setTime(date(time)); - } + position.setTime(date(time)); position.setValid(true); position.setSpeed(speed); position.set(Position.KEY_TOTAL_DISTANCE, totalDistance); |