fix(tests): avoid shadowing declared variable

This commit is contained in:
Erica Marigold 2023-09-30 11:19:09 +05:30
parent 47d39cb8a9
commit 9bc39d3aef
No known key found for this signature in database
GPG key ID: 7843994FD1386E35

View file

@ -162,10 +162,7 @@ assert(
) )
-- Passing stdin strings should work -- Passing stdin strings should work
local stdinChild = process.spawn((((not IS_WINDOWS) and "xargs") or "powershell"), {
local isWindows = process.os == "windows"
local stdinChild = process.spawn((((not isWindows) and "xargs") or "powershell"), {
"echo", "echo",
}, { }, {
stdin = echoMessage, stdin = echoMessage,