diff options
Diffstat (limited to 'hv-collector-domain/src/main/kotlin/org/onap/dcae/collectors/veshv/domain/codec.kt')
-rw-r--r-- | hv-collector-domain/src/main/kotlin/org/onap/dcae/collectors/veshv/domain/codec.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hv-collector-domain/src/main/kotlin/org/onap/dcae/collectors/veshv/domain/codec.kt b/hv-collector-domain/src/main/kotlin/org/onap/dcae/collectors/veshv/domain/codec.kt index 480ec693..7fabdf14 100644 --- a/hv-collector-domain/src/main/kotlin/org/onap/dcae/collectors/veshv/domain/codec.kt +++ b/hv-collector-domain/src/main/kotlin/org/onap/dcae/collectors/veshv/domain/codec.kt @@ -77,6 +77,7 @@ class WireFrameDecoder(private val maxPayloadSizeBytes: Int) { } } + @Suppress("ReturnCount") private fun parsePayloadFrame(byteBuf: ByteBuf): Either<WireFrameDecodingError, WireFrameMessage> { val versionMajor = byteBuf.readUnsignedByte() val versionMinor = byteBuf.readUnsignedByte() @@ -97,6 +98,5 @@ class WireFrameDecoder(private val maxPayloadSizeBytes: Int) { val payload = ByteData.readFrom(byteBuf, payloadSize) return Right(WireFrameMessage(payload, versionMajor, versionMinor, payloadTypeRaw, payloadSize)) - } } |