chore(scraper): add LuaCATS types for env helper
Add LuaCATS annotations to the env conversion helper and drop the table.sort call since ordering is not required by uv.spawn. Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
parent
484a4a56d0
commit
9fc34cb6fd
1 changed files with 2 additions and 1 deletions
|
|
@ -20,12 +20,13 @@ local function syshandle(result)
|
|||
return { success = true, data = data }
|
||||
end
|
||||
|
||||
---@param env_map table<string, string>
|
||||
---@return string[]
|
||||
local function spawn_env_list(env_map)
|
||||
local out = {}
|
||||
for key, value in pairs(env_map) do
|
||||
out[#out + 1] = tostring(key) .. '=' .. tostring(value)
|
||||
end
|
||||
table.sort(out)
|
||||
return out
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue