@@ -1565,12 +1565,12 @@ static void Unlink(const FunctionCallbackInfo<Value>& args) {
|
1565 | 1565 | |
1566 | 1566 | if (argc > 1) { // unlink(path, req) |
1567 | 1567 | FSReqBase* req_wrap_async = GetReqWrap(args, 1); |
| 1568 | +CHECK_NOT_NULL(req_wrap_async); |
1568 | 1569 | ASYNC_THROW_IF_INSUFFICIENT_PERMISSIONS( |
1569 | 1570 | env, |
1570 | 1571 | req_wrap_async, |
1571 | 1572 | permission::PermissionScope::kFileSystemWrite, |
1572 | 1573 | path.ToStringView()); |
1573 | | -CHECK_NOT_NULL(req_wrap_async); |
1574 | 1574 | FS_ASYNC_TRACE_BEGIN1( |
1575 | 1575 | UV_FS_UNLINK, req_wrap_async, "path", TRACE_STR_COPY(*path)) |
1576 | 1576 | AsyncCall(env, req_wrap_async, args, "unlink", UTF8, AfterNoArgs, |
|