Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ export async function getRpathFromSystem(): Promise<string> {
let rpath = '';
const platform: string = process.platform;

if ( platform === 'win32') {
rpath ||= getRfromEnvPath(platform);

if ( !rpath && platform === 'win32') {
// Find path from registry
try {
const key = new winreg({
Expand All @@ -50,8 +52,6 @@ export async function getRpathFromSystem(): Promise<string> {
}
}

rpath ||= getRfromEnvPath(platform);

return rpath;
}

Expand Down