MassManager: shorten this if.

This commit is contained in:
Guillaume Jacquemin 2021-07-10 16:36:49 +02:00
parent 045aaa8dad
commit 0bb3be13fe

View file

@ -125,8 +125,7 @@ auto MassManager::exportMass(int hangar) -> bool {
return false; return false;
} }
if(_hangars[hangar].state() == MassState::Empty || if(_hangars[hangar].state() != MassState::Valid) {
_hangars[hangar].state() == MassState::Invalid) {
_lastError = Utility::formatString("There is no valid data to export in hangar {:.2d}", hangar + 1); _lastError = Utility::formatString("There is no valid data to export in hangar {:.2d}", hangar + 1);
return false; return false;
} }