Skip to content

Commit f938ef7

Browse files
committed
src: fix -Wunused-variable compiler warning
Introduced in commit 7d8882b, "handle_wrap: expose an `isRefed()` check to JS". PR-URL: #6129 Reviewed-By: Evan Lucas <[email protected]>
1 parent a246689 commit f938ef7

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/handle_wrap.cc

-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ void HandleWrap::Unref(const FunctionCallbackInfo<Value>& args) {
3939

4040

4141
void HandleWrap::IsRefed(const FunctionCallbackInfo<Value>& args) {
42-
Environment* env = Environment::GetCurrent(args);
4342
HandleWrap* wrap = Unwrap<HandleWrap>(args.Holder());
4443

4544
bool refed = IsAlive(wrap) && (wrap->flags_ & kUnref) == 0;

0 commit comments

Comments
 (0)