mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-20 07:27:22 -06:00
Don't use 'else' after return/break
This commit is contained in:
@@ -556,22 +556,20 @@ void Parser::parse_impl(const QByteArray &feedData)
|
||||
foundChannel = true;
|
||||
break;
|
||||
}
|
||||
else {
|
||||
qDebug() << "Skip rss item: " << xml.name();
|
||||
xml.skipCurrentElement();
|
||||
}
|
||||
|
||||
qDebug() << "Skip rss item: " << xml.name();
|
||||
xml.skipCurrentElement();
|
||||
}
|
||||
break;
|
||||
}
|
||||
else if (xml.name() == "feed") { // Atom feed
|
||||
if (xml.name() == "feed") { // Atom feed
|
||||
parseAtomChannel(xml);
|
||||
foundChannel = true;
|
||||
break;
|
||||
}
|
||||
else {
|
||||
qDebug() << "Skip root item: " << xml.name();
|
||||
xml.skipCurrentElement();
|
||||
}
|
||||
|
||||
qDebug() << "Skip root item: " << xml.name();
|
||||
xml.skipCurrentElement();
|
||||
}
|
||||
|
||||
if (!foundChannel) {
|
||||
|
||||
@@ -81,8 +81,8 @@ QString Item::joinPath(const QString &path1, const QString &path2)
|
||||
{
|
||||
if (path1.isEmpty())
|
||||
return path2;
|
||||
else
|
||||
return path1 + Item::PathSeparator + path2;
|
||||
|
||||
return (path1 + Item::PathSeparator + path2);
|
||||
}
|
||||
|
||||
QStringList Item::expandPath(const QString &path)
|
||||
|
||||
Reference in New Issue
Block a user