summaryrefslogtreecommitdiff
path: root/src/node_zlib.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/node_zlib.cc')
-rw-r--r--src/node_zlib.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node_zlib.cc b/src/node_zlib.cc
index 30fef0ff1d..fdcf685caf 100644
--- a/src/node_zlib.cc
+++ b/src/node_zlib.cc
@@ -386,7 +386,7 @@ class CompressionStream : public AsyncWrap, public ThreadPoolWork {
// v8 land!
void AfterThreadPoolWork(int status) override {
AllocScope alloc_scope(this);
- OnScopeLeave on_scope_leave([&]() { Unref(); });
+ auto on_scope_leave = OnScopeLeave([&]() { Unref(); });
write_in_progress_ = false;