Assign return value only once.

This commit is contained in:
Bartosz Taudul 2019-01-29 22:21:01 +01:00
parent 852fe03cbc
commit 653caf159f

View File

@ -1368,8 +1368,7 @@ Profiler::DequeueStatus Profiler::DequeueSerial()
bool Profiler::AppendData( const void* data, size_t len )
{
auto ret = true;
ret = NeedDataSize( len );
const auto ret = NeedDataSize( len );
AppendDataUnsafe( data, len );
return ret;
}