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;
}
if(_hangars[hangar].state() == MassState::Empty ||
_hangars[hangar].state() == MassState::Invalid) {
if(_hangars[hangar].state() != MassState::Valid) {
_lastError = Utility::formatString("There is no valid data to export in hangar {:.2d}", hangar + 1);
return false;
}