summaryrefslogtreecommitdiff
path: root/src/node_platform.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/node_platform.cc')
-rw-r--r--src/node_platform.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/node_platform.cc b/src/node_platform.cc
index 797d4d9cbb..b930edb156 100644
--- a/src/node_platform.cc
+++ b/src/node_platform.cc
@@ -241,14 +241,14 @@ void PerIsolatePlatformData::PostIdleTask(std::unique_ptr<v8::IdleTask> task) {
}
void PerIsolatePlatformData::PostTask(std::unique_ptr<Task> task) {
- CHECK_NE(flush_tasks_, nullptr);
+ CHECK_NOT_NULL(flush_tasks_);
foreground_tasks_.Push(std::move(task));
uv_async_send(flush_tasks_);
}
void PerIsolatePlatformData::PostDelayedTask(
std::unique_ptr<Task> task, double delay_in_seconds) {
- CHECK_NE(flush_tasks_, nullptr);
+ CHECK_NOT_NULL(flush_tasks_);
std::unique_ptr<DelayedTask> delayed(new DelayedTask());
delayed->task = std::move(task);
delayed->platform_data = shared_from_this();