fix: cleanup varnames
This commit is contained in:
parent
1fd7fa2a81
commit
fdc1441fa3
1 changed files with 2 additions and 3 deletions
|
|
@ -83,7 +83,6 @@ local function setup_problem(contest_id, problem_id, language)
|
|||
state.test_cases = cached_test_cases
|
||||
logger.log(('using cached test cases (%d)'):format(#cached_test_cases))
|
||||
elseif vim.tbl_contains(config.scrapers, state.platform) then
|
||||
local constants = require('cp.constants')
|
||||
local platform_display_name = constants.PLATFORM_DISPLAY_NAMES[state.platform] or state.platform
|
||||
logger.log(
|
||||
('Scraping %s %s %s for test cases, this may take a few seconds...'):format(
|
||||
|
|
@ -574,9 +573,9 @@ local function toggle_run_panel(is_debug)
|
|||
config.hooks.before_debug(ctx)
|
||||
end
|
||||
|
||||
local execute_module = require('cp.execute')
|
||||
local execute = require('cp.execute')
|
||||
local contest_config = config.contests[state.platform]
|
||||
local compile_result = execute_module.compile_problem(ctx, contest_config, is_debug)
|
||||
local compile_result = execute.compile_problem(ctx, contest_config, is_debug)
|
||||
if compile_result.success then
|
||||
run.run_all_test_cases(ctx, contest_config, config)
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue