From 4ebce65e3d6db55d427f504bd62972370fab2eec Mon Sep 17 00:00:00 2001 From: Abyss777 Date: Mon, 1 Aug 2016 17:39:57 +0500 Subject: Small optimization --- src/org/traccar/protocol/MeiligaoProtocolDecoder.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/org/traccar/protocol/MeiligaoProtocolDecoder.java b/src/org/traccar/protocol/MeiligaoProtocolDecoder.java index f23641ddb..c6c984dda 100644 --- a/src/org/traccar/protocol/MeiligaoProtocolDecoder.java +++ b/src/org/traccar/protocol/MeiligaoProtocolDecoder.java @@ -209,10 +209,7 @@ public class MeiligaoProtocolDecoder extends BaseProtocolDecoder { // Custom data if (command == MSG_ALARM) { - String alarm = decodeAlarm(buf.readUnsignedByte()); - if (alarm != null) { - position.set(Position.KEY_ALARM, alarm); - } + position.set(Position.KEY_ALARM, decodeAlarm(buf.readUnsignedByte())); } else if (command == MSG_POSITION_LOGGED) { buf.skipBytes(6); } -- cgit v1.2.3