refactor: Remove Outcome from network requests (#4959)
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user