Cleaner error checking
This commit is contained in:
parent
ab626253e5
commit
b100e782cb
|
@ -567,7 +567,7 @@ void RealmClass<T>::wait_for_download_completion(ContextType ctx, FunctionType,
|
||||||
|
|
||||||
EventLoopDispatcher<WaitHandler> wait_handler([=](std::error_code error_code) {
|
EventLoopDispatcher<WaitHandler> wait_handler([=](std::error_code error_code) {
|
||||||
HANDLESCOPE
|
HANDLESCOPE
|
||||||
if (error_code == std::error_code{}) {
|
if (!error_code) {
|
||||||
//success
|
//success
|
||||||
Function<T>::callback(protected_ctx, protected_callback, protected_this, 0, nullptr);
|
Function<T>::callback(protected_ctx, protected_callback, protected_this, 0, nullptr);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue