Skip to content

Commit

Permalink
Remove redundant breaks (microsoft#1919)
Browse files Browse the repository at this point in the history
They do not need to be there since return works here.
  • Loading branch information
AZero13 authored Oct 2, 2022
1 parent 9deb196 commit a0781b2
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/CalcViewModel/Common/ExpressionCommandDeserializer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,24 +17,16 @@ std::shared_ptr<IExpressionCommand> CommandDeserializer::Deserialize(_In_ Calcul
switch (cmdType)
{
case CalculationManager::CommandType::OperandCommand:

return std::make_shared<COpndCommand>(DeserializeOperand());
break;

case CalculationManager::CommandType::Parentheses:

return std::make_shared<CParentheses>(DeserializeParentheses());
break;

case CalculationManager::CommandType::UnaryCommand:

return std::make_shared<CUnaryCommand>(DeserializeUnary());
break;

case CalculationManager::CommandType::BinaryCommand:

return std::make_shared<CBinaryCommand>(DeserializeBinary());
break;

default:
throw ref new Platform::Exception(E_INVALIDARG, ref new Platform::String(L"Unknown command type"));
Expand Down

0 comments on commit a0781b2

Please sign in to comment.