Cleaner error checking

This commit is contained in:
blagoev 2017-05-16 12:11:23 +03:00
parent ab626253e5
commit b100e782cb
1 changed files with 1 additions and 1 deletions

View File

@ -567,7 +567,7 @@ void RealmClass<T>::wait_for_download_completion(ContextType ctx, FunctionType,
EventLoopDispatcher<WaitHandler> wait_handler([=](std::error_code error_code) {
HANDLESCOPE
if (error_code == std::error_code{}) {
if (!error_code) {
//success
Function<T>::callback(protected_ctx, protected_callback, protected_this, 0, nullptr);
}