fix(ci): lua lint (#960)
This commit is contained in:
parent
e98fa46bec
commit
dde035831a
@ -1598,15 +1598,7 @@ function Sidebar:create_input_container(opts)
|
|||||||
if cmd then
|
if cmd then
|
||||||
if command == "lines" then
|
if command == "lines" then
|
||||||
cmd.callback(args, function(args_)
|
cmd.callback(args, function(args_)
|
||||||
local start_line, end_line, question = args_:match("(%d+)-(%d+)%s+(.*)")
|
local _, _, question = args_:match("(%d+)-(%d+)%s+(.*)")
|
||||||
---@cast start_line integer
|
|
||||||
start_line = tonumber(start_line)
|
|
||||||
---@cast end_line integer
|
|
||||||
end_line = tonumber(end_line)
|
|
||||||
if end_line == nil then
|
|
||||||
Utils.error("Invalid end line number", { once = true, title = "Avante" })
|
|
||||||
return
|
|
||||||
end
|
|
||||||
request = question
|
request = question
|
||||||
end)
|
end)
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user