Skip to content

Commit 1ea23a0

Browse files
authored
Update current-env.js
1 parent f93eaef commit 1ea23a0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/current-env.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ function libc (osName) {
1919
return undefined
2020
}
2121

22-
if (!family) {
22+
if (family === undefined) {
2323
const originalExclude = process.report.excludeNetwork
2424
process.report.excludeNetwork = true
2525
const report = process.report.getReport()
@@ -28,9 +28,11 @@ function libc (osName) {
2828
family = 'glibc'
2929
} else if (Array.isArray(report.sharedObjects) && report.sharedObjects.some(isMusl)) {
3030
family = 'musl'
31+
} else {
32+
family = null
3133
}
3234
}
33-
return family
35+
return family || undefined
3436
}
3537

3638
function devEngines (env = {}) {

0 commit comments

Comments
 (0)