fix: simplify switch statement

Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
This commit is contained in:
Sefa Eyeoglu 2023-07-29 11:02:10 +02:00
parent a545f67a21
commit 76df836378
No known key found for this signature in database
GPG Key ID: E13DFD4B47127951

View File

@ -591,10 +591,7 @@ QVariant PackProfile::data(const QModelIndex &index, int role) const
} }
case Qt::DecorationRole: case Qt::DecorationRole:
{ {
switch(column) if (column == NameColumn) {
{
case NameColumn:
{
auto severity = patch->getProblemSeverity(); auto severity = patch->getProblemSeverity();
switch (severity) switch (severity)
{ {
@ -606,11 +603,7 @@ QVariant PackProfile::data(const QModelIndex &index, int role) const
return QVariant(); return QVariant();
} }
} }
default: return QVariant();
{
return QVariant();
}
}
} }
} }
return QVariant(); return QVariant();