mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
Fix typo
This commit is contained in:
parent
5ea07c5d47
commit
54d5ce5568
1 changed files with 2 additions and 2 deletions
|
@ -27,7 +27,7 @@ public:
|
||||||
template <typename OkType, typename ErrorType>
|
template <typename OkType, typename ErrorType>
|
||||||
class APIRequest
|
class APIRequest
|
||||||
{
|
{
|
||||||
using APISuceessCallback = std::function<Outcome(NetworkResult, OkType)>;
|
using APISuccessCallback = std::function<Outcome(NetworkResult, OkType)>;
|
||||||
using APIErrorCallback = std::function<void(NetworkResult, ErrorType)>;
|
using APIErrorCallback = std::function<void(NetworkResult, ErrorType)>;
|
||||||
using APIFinallyCallback = std::function<void()>;
|
using APIFinallyCallback = std::function<void()>;
|
||||||
|
|
||||||
|
@ -104,7 +104,7 @@ public:
|
||||||
return std::move(*this);
|
return std::move(*this);
|
||||||
};
|
};
|
||||||
|
|
||||||
APIRequest<OkType, ErrorType> onSuccess(const APISuceessCallback &cb) &&
|
APIRequest<OkType, ErrorType> onSuccess(const APISuccessCallback &cb) &&
|
||||||
{
|
{
|
||||||
this->data_->onSuccess = cb;
|
this->data_->onSuccess = cb;
|
||||||
return std::move(*this);
|
return std::move(*this);
|
||||||
|
|
Loading…
Reference in a new issue