Remove useless else
This commit is contained in:
@@ -194,7 +194,7 @@ QString About::PersonToHtml(const Person &person) {
|
||||
if (person.email.isEmpty()) {
|
||||
return person.name;
|
||||
}
|
||||
else {
|
||||
return QStringLiteral("%1 <<a href=\"mailto:%2\">%3</a>>").arg(person.name, person.email, person.email);
|
||||
}
|
||||
|
||||
return QStringLiteral("%1 <<a href=\"mailto:%2\">%3</a>>").arg(person.name, person.email, person.email);
|
||||
|
||||
}
|
||||
|
||||
@@ -181,7 +181,7 @@ void TrackSelectionDialog::UpdateStack() {
|
||||
ui_->progress->set_text(tag_data.progress_string_ + QStringLiteral("..."));
|
||||
return;
|
||||
}
|
||||
else if (tag_data.results_.isEmpty()) {
|
||||
if (tag_data.results_.isEmpty()) {
|
||||
ui_->stack->setCurrentWidget(ui_->error_page);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user