Skip to content

Commit

Permalink
Fixed Darwin compile error - do not use else after return
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesharrow committed Dec 30, 2023
1 parent 85c68ed commit a897dec
Showing 1 changed file with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -315,10 +315,7 @@ bool IsEvPluggedIn(StateEnum state)
{
return false;
}
else
{
return true;
}
return true;
}

bool IsEvTransferringEnergy(StateEnum state)
Expand All @@ -327,10 +324,7 @@ bool IsEvTransferringEnergy(StateEnum state)
{
return true;
}
else
{
return false;
}
return false;
}
/**
* @brief Called by EVSE Hardware to indicate if EV is detected
Expand Down

0 comments on commit a897dec

Please sign in to comment.