refactor(struct_tags): optimization ig

This commit is contained in:
Oleksandr Smirnov 2025-03-19 18:01:17 +02:00
parent a047cf2a13
commit 44485a918b
No known key found for this signature in database

View file

@ -81,12 +81,10 @@ end
---@param args string[] ---@param args string[]
---@return string ---@return string
local function handler_user_args(args) local function handler_user_args(args)
local res = table.concat(args, ",") if #args == 0 then
if res == "" then
return c.gotag.default_tag return c.gotag.default_tag
end end
return table.concat(args, ",")
return res
end end
---Adds tags to a struct under the cursor ---Adds tags to a struct under the cursor