refactor: Remove Outcome from network requests (#4959)

This commit is contained in:
nerix
2023-11-12 14:51:51 +01:00
committed by GitHub
parent 95620e6e10
commit 6faf63c5c4
22 changed files with 122 additions and 228 deletions
+1 -2
View File
@@ -804,7 +804,7 @@ void SplitHeader::updateChannelText()
{
NetworkRequest(url, NetworkRequestType::Get)
.caller(this)
.onSuccess([this](auto result) -> Outcome {
.onSuccess([this](auto result) {
// NOTE: We do not follow the redirects, so we need to make sure we only treat code 200 as a valid image
if (result.status() == 200)
{
@@ -816,7 +816,6 @@ void SplitHeader::updateChannelText()
this->thumbnail_.clear();
}
this->updateChannelText();
return Success;
})
.execute();
this->lastThumbnail_.restart();