Avoid an extraneous test.

This commit is contained in:
JoelKatz
2013-12-09 00:45:10 -08:00
parent 071db75f04
commit 37588b6808

View File

@@ -1652,8 +1652,7 @@ void NetworkOPsImp::setMode (OperatingMode om)
if (getApp().getLedgerMaster ().getValidatedLedgerAge () < 60) if (getApp().getLedgerMaster ().getValidatedLedgerAge () < 60)
om = omSYNCING; om = omSYNCING;
} }
else if (om == omSYNCING)
if (om == omSYNCING)
{ {
if (getApp().getLedgerMaster ().getValidatedLedgerAge () >= 60) if (getApp().getLedgerMaster ().getValidatedLedgerAge () >= 60)
om = omCONNECTED; om = omCONNECTED;