Remove expression with no effects from CalculatorManager (#337)
This commit is contained in:
Родитель
251ffffc50
Коммит
426a6c058d
|
@ -308,7 +308,10 @@ namespace CalculationManager
|
|||
unsigned char CalculatorManager::MapCommandForSerialize(Command command)
|
||||
{
|
||||
unsigned int commandToSave = static_cast<unsigned int>(command);
|
||||
commandToSave > UCHAR_MAX ? commandToSave -= UCHAR_MAX : commandToSave;
|
||||
if (commandToSave > UCHAR_MAX)
|
||||
{
|
||||
commandToSave -= UCHAR_MAX;
|
||||
}
|
||||
return static_cast<unsigned char>(commandToSave);
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче