Commit 898cddd9 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

Simplify logic

parent c01a0cee
......@@ -1094,10 +1094,10 @@ ResultsStream * FlatpakBackend::search(const AbstractResourcesBackend::Filters &
fetchResourceJob->start();
return stream;
} else if ((!filter.resourceUrl.isEmpty() && filter.resourceUrl.scheme() != QLatin1String("appstream")) || !filter.extends.isEmpty())
return new ResultsStream(QStringLiteral("FlatpakStream-void"), {});
else if(filter.resourceUrl.scheme() == QLatin1String("appstream"))
} else if(filter.resourceUrl.scheme() == QLatin1String("appstream")) {
return findResourceByPackageName(filter.resourceUrl);
} else if (!filter.resourceUrl.isEmpty() || !filter.extends.isEmpty())
return new ResultsStream(QStringLiteral("FlatpakStream-void"), {});
QVector<AbstractResource*> ret;
foreach(AbstractResource* r, m_resources) {
......
Markdown is supported
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