Verified Commit 6633fa60 authored by Fushan Wen's avatar Fushan Wen 💬
Browse files

wallpapers/potd: remove redundant if statement

The while loop already checks the condition.
parent 9a1180f1
......@@ -189,10 +189,6 @@ PotdClient *PotdEngine::registerClient(const QString &identifier, const QVariant
return client;
};
if (pr.first == pr.second) {
return createClient();
}
while (pr.first != pr.second) {
// find exact match
if (pr.first->second.client->m_args == args) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment