Skip to content

Commit

Permalink
Fix: JS compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
ashvardanian committed Mar 31, 2024
1 parent 87e200b commit cea50ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion javascript/lib.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ Napi::Value exactSearch(Napi::CallbackInfo const& ctx) {
metric_punned_t metric(dimensions, metric_kind, quantization);
if (!metric) {
Napi::TypeError::New(env, "Failed to initialize the metric!").ThrowAsJavaScriptException();
return;
return env.Null();
}

executor_default_t executor;
Expand Down

0 comments on commit cea50ba

Please sign in to comment.