summaryrefslogtreecommitdiff
path: root/src/env-inl.h
diff options
context:
space:
mode:
authorFranziska Hinkelmann <franziska.hinkelmann@gmail.com>2017-11-16 15:50:39 +0100
committerFranziska Hinkelmann <franziska.hinkelmann@gmail.com>2017-11-19 09:20:26 +0100
commitf841fc63ddc4808e301e30b60f666190c025f9a2 (patch)
treefb17aec77d1a4565751b84de4fa74b52d73ce0e7 /src/env-inl.h
parentce6c7f5b01a9faf5b4c6561944e89ba8d42b68de (diff)
downloadnode-new-f841fc63ddc4808e301e30b60f666190c025f9a2.tar.gz
src: use std::unique_ptr in base-object-inl.h
Drive-by fix: delete superflouos nullptr in ptr.reset(). PR-URL: https://github.com/nodejs/node/pull/17079 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Timothy Gu <timothygu99@gmail.com>
Diffstat (limited to 'src/env-inl.h')
-rw-r--r--src/env-inl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/env-inl.h b/src/env-inl.h
index f7a7559b3f..2c55e8cd94 100644
--- a/src/env-inl.h
+++ b/src/env-inl.h
@@ -329,7 +329,7 @@ inline Environment::~Environment() {
#if HAVE_INSPECTOR
// Destroy inspector agent before erasing the context. The inspector
// destructor depends on the context still being accessible.
- inspector_agent_.reset(nullptr);
+ inspector_agent_.reset();
#endif
context()->SetAlignedPointerInEmbedderData(kContextEmbedderDataIndex,