fix(ci): type check

This commit is contained in:
Barrett Ruth 2025-10-05 12:40:23 -04:00
parent fa2660455a
commit 91864b2992
3 changed files with 6 additions and 6 deletions

View file

@ -102,7 +102,7 @@ function M.handle_command(opts)
if cmd.action == 'interact' then
ui.toggle_interactive()
elseif cmd.action == 'run' then
ui.toggle_run_panel({ debug = false })
ui.toggle_run_panel()
elseif cmd.action == 'debug' then
ui.toggle_run_panel({ debug = true })
elseif cmd.action == 'next' then

View file

@ -115,7 +115,7 @@ function M.toggle_interactive()
state.set_active_panel('interactive')
end
---@param run_opts RunOpts
---@param run_opts? RunOpts
function M.toggle_run_panel(run_opts)
if state.get_active_panel() == 'run' then
if current_diff_layout then
@ -274,7 +274,7 @@ function M.toggle_run_panel(run_opts)
config.hooks.before_run(state)
end)
end
if run_opts.debug and config.hooks and config.hooks.before_debug then
if run_opts and run_opts.debug and config.hooks and config.hooks.before_debug then
vim.schedule_wrap(function()
config.hooks.before_debug(state)
end)