Skip to content

Commit

Permalink
src, test: lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
louwers committed Aug 3, 2024
1 parent b62c955 commit 1948ee0
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/node_sqlite.cc
Original file line number Diff line number Diff line change
Expand Up @@ -318,9 +318,14 @@ void DatabaseSync::ApplyChangeset(const FunctionCallbackInfo<Value>& args) {

Local<Object> options = args[1].As<Object>();

Local<String> conflictKey = String::NewFromUtf8(env->isolate(), "onConflict", v8::NewStringType::kNormal).ToLocalChecked();
Local<String> conflictKey = String::NewFromUtf8(
env->isolate(),
"onConflict",
v8::NewStringType::kNormal).ToLocalChecked();
if (options->HasOwnProperty(env->context(), conflictKey).FromJust()) {
Local<Value> conflictValue = options->Get(env->context(), conflictKey).ToLocalChecked();
Local<Value> conflictValue = options->Get(
env->context(),
conflictKey).ToLocalChecked();

if (!conflictValue->IsNumber()) {
node::THROW_ERR_INVALID_ARG_TYPE(
Expand Down

0 comments on commit 1948ee0

Please sign in to comment.