refactor(struct_tags): optimization ig
This commit is contained in:
parent
a047cf2a13
commit
44485a918b
1 changed files with 2 additions and 4 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue