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:
parent
cba3d68063
commit
021e6c02d7
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user