Skip to content

Commit

Permalink
squash: address linter complaints
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Dawson <midawson@redhat.com>
  • Loading branch information
mhdawson committed Dec 4, 2023
1 parent e9bf31e commit 694cf0c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/node_internals.h
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,9 @@ static v8::MaybeLocal<v8::Object> New(Environment* env,
ret = New(env, src, len_in_bytes);
// new always takes ownership of src
buf->Release();
} else if (!buf->IsInvalidated())
} else if (!buf->IsInvalidated()) {
ret = Copy(env, src, len_in_bytes);
}

return ret;
}
Expand Down

0 comments on commit 694cf0c

Please sign in to comment.