diff --git a/src/node_sqlite.cc b/src/node_sqlite.cc index 35dbe1ffc50772..f23f25ba0d58fe 100644 --- a/src/node_sqlite.cc +++ b/src/node_sqlite.cc @@ -2432,9 +2432,6 @@ void DatabaseSync::LoadExtension(const FunctionCallbackInfo& args) { BufferValue entryPoint(isolate, args[1]); CHECK_NOT_NULL(*path); ToNamespacedPath(env, &path); - if (*entryPoint == nullptr) { - ToNamespacedPath(env, &entryPoint); - } THROW_IF_INSUFFICIENT_PERMISSIONS( env, permission::PermissionScope::kFileSystemRead, path.ToStringView()); char* errmsg = nullptr;