From e989897c7767b8d9c9a1be4ca5c0618b13a18ea4 Mon Sep 17 00:00:00 2001 From: Harivansh Rathi Date: Sun, 22 Feb 2026 22:16:48 -0500 Subject: [PATCH] style(lua): format URL-open condition in setup Co-authored-by: Codex --- lua/cp/setup.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lua/cp/setup.lua b/lua/cp/setup.lua index deeadd9..5130822 100644 --- a/lua/cp/setup.lua +++ b/lua/cp/setup.lua @@ -145,7 +145,8 @@ function M.setup_contest(platform, contest_id, problem_id, language) start_tests(platform, contest_id, problems) local is_new_problem = old_problem_id ~= pid - local should_open_url = config_module.get_config().open_url and (is_new_contest or is_new_problem) + local should_open_url = config_module.get_config().open_url + and (is_new_contest or is_new_problem) if should_open_url and contest_data.url then vim.ui.open(contest_data.url:format(pid)) end