Skip to content

Commit 0860142

Browse files
authored
fix: fix the logic for the UNDICI_NO_WASM_SIMD environment variable (#5026)
1 parent 6824eed commit 0860142

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/dispatcher/client-h1.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,9 @@ function lazyllhttp () {
6969
let useWasmSIMD = process.arch !== 'ppc64'
7070
// The Env Variable UNDICI_NO_WASM_SIMD allows explicitly overriding the default behavior
7171
if (process.env.UNDICI_NO_WASM_SIMD === '1') {
72-
useWasmSIMD = true
73-
} else if (process.env.UNDICI_NO_WASM_SIMD === '0') {
7472
useWasmSIMD = false
73+
} else if (process.env.UNDICI_NO_WASM_SIMD === '0') {
74+
useWasmSIMD = true
7575
}
7676

7777
if (useWasmSIMD) {

0 commit comments

Comments
 (0)