aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2018-10-17 16:25:08 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2018-10-17 16:25:08 +1300
commit6f707c42d2798c93009e289a46d2faf918b75eea (patch)
tree701a9b9b0ea9d2609cf002ec219161126409e3d5 /src
parent804c75dd39f1141ae9ffc176c0e8e5fdf32aa2f9 (diff)
downloadtraccar-server-6f707c42d2798c93009e289a46d2faf918b75eea.tar.gz
traccar-server-6f707c42d2798c93009e289a46d2faf918b75eea.tar.bz2
traccar-server-6f707c42d2798c93009e289a46d2faf918b75eea.zip
Remove unnecessary assignment
Diffstat (limited to 'src')
-rw-r--r--src/org/traccar/BaseProtocolDecoder.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/org/traccar/BaseProtocolDecoder.java b/src/org/traccar/BaseProtocolDecoder.java
index e18b7df58..2914fc3ac 100644
--- a/src/org/traccar/BaseProtocolDecoder.java
+++ b/src/org/traccar/BaseProtocolDecoder.java
@@ -82,8 +82,7 @@ public abstract class BaseProtocolDecoder extends ExtendedObjectDecoder {
protected TimeZone getTimeZone(long deviceId, String defaultTimeZone) {
TimeZone result = TimeZone.getTimeZone(defaultTimeZone);
- String timeZoneName = null;
- timeZoneName = identityManager.lookupAttributeString(deviceId, "decoder.timezone", null, true);
+ String timeZoneName = identityManager.lookupAttributeString(deviceId, "decoder.timezone", null, true);
if (timeZoneName != null) {
result = TimeZone.getTimeZone(timeZoneName);
} else {