Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Commit e215b58

Browse files
committed
Use Boolean instead of Number
1 parent ad11452 commit e215b58

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main.cc

+2-2
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,11 @@ Napi::Value SpawnAsAdmin(const Napi::CallbackInfo& info) {
7777

7878
void *child_process = StartChildProcess(command, args, test_mode);
7979
if (!child_process) {
80-
return Napi::Number::New(env, false);
80+
return Napi::Boolean::New(env, false);
8181
} else {
8282
auto worker = new Worker(info[3].As<Napi::Function>(), child_process, test_mode);
8383
worker->Queue();
84-
return Napi::Number::New(env, true);
84+
return Napi::Boolean::New(env, true);
8585
}
8686
}
8787

0 commit comments

Comments
 (0)