[coap] remove functional code from assert (#3288)

This commit is contained in:
Łukasz Duda
2018-11-12 15:54:40 -08:00
committed by Jonathan Hui
parent 90dd7a42d0
commit 6a0f35c63c
+3 -1
View File
@@ -304,7 +304,9 @@ public:
*/
static void RemoveFrom(Message &aMessage)
{
assert(aMessage.SetLength(aMessage.GetLength() - sizeof(EnqueuedResponseHeader)) == OT_ERROR_NONE);
otError error = aMessage.SetLength(aMessage.GetLength() - sizeof(EnqueuedResponseHeader));
assert(error == OT_ERROR_NONE);
OT_UNUSED_VARIABLE(error);
}
/**