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

Use Boolean instead of Number in SpawnAsAdmin return values #115

Merged
merged 1 commit into from
Feb 7, 2022

Conversation

sergiou87
Copy link
Collaborator

I just noticed N-API provides a Boolean abstraction, which maps to boolean values (true / false) in Javascript instead of using number values (1 / 0) when using the Number abstraction.

This shouldn't affect anything, because the function spawnAsAdmin was used only with truthy/falsy checks.

@sergiou87 sergiou87 requested a review from shiftkey May 13, 2021 16:32
@sergiou87 sergiou87 merged commit 0dcecb2 into master Feb 7, 2022
@sergiou87 sergiou87 deleted the boolean-instead-of-number branch February 7, 2022 15:16
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant