Skip to content

Commit

Permalink
sqlite: simplify string conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
louwers committed Nov 17, 2024
1 parent 8776af6 commit 092a28c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node_sqlite.cc
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ void DatabaseSync::CreateSession(const FunctionCallbackInfo<Value>& args) {

if (table_value->IsString()) {
String::Utf8Value str(env->isolate(), table_value);
table = std::string(*str);
table = *str;
} else {
THROW_ERR_INVALID_ARG_TYPE(
env->isolate(), "The \"options.table\" argument must be a string.");
Expand Down

0 comments on commit 092a28c

Please sign in to comment.