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[]
---@return string
local function handler_user_args(args)
local res = table.concat(args, ",")
if res == "" then
if #args == 0 then
return c.gotag.default_tag
end
return res
return table.concat(args, ",")
end
---Adds tags to a struct under the cursor