Run clang-format

This commit is contained in:
Bart De Vries 2021-07-21 21:25:13 +02:00
parent d0dbdad7fa
commit 85798ebd8c
2 changed files with 3 additions and 5 deletions

View File

@ -148,11 +148,9 @@ void PodcastSearchModel::search(const QString &text)
request.setRawHeader("Authorization", hash.toHex());
auto reply = Fetcher::instance().get(request);
connect(reply, &QNetworkReply::finished, this, [=]() {
if(reply->error())
{
if (reply->error()) {
ErrorLogModel::instance().monitorErrorMessages(Error::Type::DiscoverError, url, QString(), reply->error(), reply->errorString(), url);
}
else {
} else {
beginResetModel();
m_data = QJsonDocument::fromJson(reply->readAll()).object();
endResetModel();

View File

@ -12,8 +12,8 @@
#include <QObject>
#include <QVariant>
#include "feed.h"
#include "errorlogmodel.h"
#include "feed.h"
class PodcastSearchModel : public QAbstractListModel
{