aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/Tk103FrameDecoder.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/protocol/Tk103FrameDecoder.java')
-rw-r--r--src/org/traccar/protocol/Tk103FrameDecoder.java8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/org/traccar/protocol/Tk103FrameDecoder.java b/src/org/traccar/protocol/Tk103FrameDecoder.java
index e8e0325da..390e38906 100644
--- a/src/org/traccar/protocol/Tk103FrameDecoder.java
+++ b/src/org/traccar/protocol/Tk103FrameDecoder.java
@@ -25,9 +25,7 @@ public class Tk103FrameDecoder extends FrameDecoder {
@Override
protected Object decode(
- ChannelHandlerContext ctx,
- Channel channel,
- ChannelBuffer buf) throws Exception {
+ ChannelHandlerContext ctx, Channel channel, ChannelBuffer buf) throws Exception {
if (buf.readableBytes() < 2) {
return null;
@@ -70,10 +68,8 @@ public class Tk103FrameDecoder extends FrameDecoder {
}
buf.readerIndex(frameStartIndex);
- ChannelBuffer result = buf.readBytes(frameEndIndex + 1 - frameStartIndex);
-
- return result;
+ return buf.readBytes(frameEndIndex + 1 - frameStartIndex);
}
}