mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-22 06:13:14 -07:00
Remove redundant if condition.
NumbersAndOperatorsEnum::None != op check was already done in the parent "if".
This commit is contained in:
parent
244fd8deee
commit
89e13465ea
1 changed files with 1 additions and 1 deletions
|
@ -988,7 +988,7 @@ void UnitConverterViewModel::OnPaste(String^ stringToPaste, ViewMode mode)
|
|||
}
|
||||
|
||||
// Negate is only allowed if it's the first legal character, which is handled above.
|
||||
if (NumbersAndOperatorsEnum::None != op && NumbersAndOperatorsEnum::Negate != op)
|
||||
if (NumbersAndOperatorsEnum::Negate != op)
|
||||
{
|
||||
UCM::Command cmd = CommandFromButtonId(op);
|
||||
m_model->SendCommand(cmd);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue