From 9fc34cb6fd7893bd7678777bf2b65ac25ab0e010 Mon Sep 17 00:00:00 2001 From: Harivansh Rathi Date: Sun, 22 Feb 2026 12:01:37 -0500 Subject: [PATCH] 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 --- lua/cp/scraper.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lua/cp/scraper.lua b/lua/cp/scraper.lua index 659983f..73b6177 100644 --- a/lua/cp/scraper.lua +++ b/lua/cp/scraper.lua @@ -20,12 +20,13 @@ local function syshandle(result) return { success = true, data = data } end +---@param env_map table +---@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