Skip to content

Commit

Permalink
Update current-env.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Tofandel authored Oct 28, 2024
1 parent f93eaef commit 1ea23a0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/current-env.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function libc (osName) {
return undefined
}

if (!family) {
if (family === undefined) {
const originalExclude = process.report.excludeNetwork
process.report.excludeNetwork = true
const report = process.report.getReport()
Expand All @@ -28,9 +28,11 @@ function libc (osName) {
family = 'glibc'
} else if (Array.isArray(report.sharedObjects) && report.sharedObjects.some(isMusl)) {
family = 'musl'
} else {
family = null
}
}
return family
return family || undefined
}

function devEngines (env = {}) {
Expand Down

0 comments on commit 1ea23a0

Please sign in to comment.