Replace unecessary type check with assertion in InstanceSettingsPage

Co-authored-by: flow <flowlnlnln@gmail.com>
Signed-off-by: Aaron Sonin <10217842+byteduck@users.noreply.github.com>
Signed-off-by: Aaron <10217842+byteduck@users.noreply.github.com>
This commit is contained in:
Aaron Sonin 2023-01-02 10:49:16 -07:00 committed by Aaron
parent cba3d68063
commit 021e6c02d7

View File

@ -500,8 +500,7 @@ void InstanceSettingsPage::changeInstanceAccount()
QAction *sAction = (QAction *)sender();
// Profile's associated Mojang username
if (sAction->data().type() != QVariant::Type::Int)
return;
Q_ASSERT(sAction->data().type() == QVariant::Type::Int);
QVariant data = sAction->data();
bool valid = false;