diff --git a/launcher/minecraft/auth/Yggdrasil.cpp b/launcher/minecraft/auth/Yggdrasil.cpp index d550635bc..dc0e1855c 100644 --- a/launcher/minecraft/auth/Yggdrasil.cpp +++ b/launcher/minecraft/auth/Yggdrasil.cpp @@ -224,14 +224,13 @@ void Yggdrasil::processResponse(QJsonObject responseData) changeState(AccountTaskState::STATE_FAILED_HARD, tr("Authentication server didn't send available profiles.")); return; } else { - if(profiles.toArray().isEmpty()) { + if (profiles.toArray().isEmpty()) { changeState(AccountTaskState::STATE_FAILED_HARD, tr("Account has no available profile.")); return; } else { profile = profiles.toArray().first(); } } - } auto profileObj = profile.toObject();