diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2017-12-09 22:58:21 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2017-12-09 22:58:21 +1300 |
commit | a991edb432d81a4b5983b78a04e8f8ac9d4d6538 (patch) | |
tree | 219d65a67b53d56e4b3215f238994c6f817d3f1d /src/org/traccar/protocol/T55ProtocolDecoder.java | |
parent | 60a58d0c52725892a812a87a11cb2ad3a5d3e73b (diff) | |
download | trackermap-server-a991edb432d81a4b5983b78a04e8f8ac9d4d6538.tar.gz trackermap-server-a991edb432d81a4b5983b78a04e8f8ac9d4d6538.tar.bz2 trackermap-server-a991edb432d81a4b5983b78a04e8f8ac9d4d6538.zip |
Fix code style issues
Diffstat (limited to 'src/org/traccar/protocol/T55ProtocolDecoder.java')
-rw-r--r-- | src/org/traccar/protocol/T55ProtocolDecoder.java | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/org/traccar/protocol/T55ProtocolDecoder.java b/src/org/traccar/protocol/T55ProtocolDecoder.java index 6b4ee6ebd..bfddf74ac 100644 --- a/src/org/traccar/protocol/T55ProtocolDecoder.java +++ b/src/org/traccar/protocol/T55ProtocolDecoder.java @@ -99,11 +99,10 @@ public class T55ProtocolDecoder extends BaseProtocolDecoder { private Position decodeGprmc( DeviceSession deviceSession, String sentence, SocketAddress remoteAddress, Channel channel) { - if (deviceSession != null && channel != null && !(channel instanceof DatagramChannel)) { - if (Context.getIdentityManager().lookupAttributeBoolean( - deviceSession.getDeviceId(), getProtocolName() + ".ack", false, true)) { - channel.write("OK1\r\n"); - } + if (deviceSession != null && channel != null && !(channel instanceof DatagramChannel) + && Context.getIdentityManager().lookupAttributeBoolean( + deviceSession.getDeviceId(), getProtocolName() + ".ack", false, true)) { + channel.write("OK1\r\n"); } Parser parser = new Parser(PATTERN_GPRMC, sentence); |