diff --git a/Include/Aurora/IO/IAsyncTransaction.hpp b/Include/Aurora/IO/IAsyncTransaction.hpp index 76679c45..72ec2e90 100644 --- a/Include/Aurora/IO/IAsyncTransaction.hpp +++ b/Include/Aurora/IO/IAsyncTransaction.hpp @@ -111,11 +111,7 @@ namespace Aurora::IO if (callback) { auto pRet = AuMakeShared(); - if (!pRet) - { - SysPushErrorMemory(); - return false; - } + SysCheckNotNullMemory(pRet, false); pRet->OnAsyncFileOpFinishedFunctional = callback.Value(); pTransaction->SetCallback(pRet); @@ -140,11 +136,7 @@ namespace Aurora::IO if (callback) { auto pRet = AuMakeShared(); - if (!pRet) - { - SysPushErrorMemory(); - return false; - } + SysCheckNotNullMemory(pRet, false); pRet->OnAsyncFileOpFinishedFunctional = callback.Value(); pTransaction->SetCallback(pRet);