fix(ci): lua style (#948)

This commit is contained in:
yetone
2024-12-13 23:24:29 +08:00
committed by GitHub
parent 4d1447b62f
commit 9e0b5bf8f1
3 changed files with 8 additions and 24 deletions

View File

@@ -180,15 +180,11 @@ P.repo_map = RepoMap
---@return AvanteTemplates|nil
P._init_templates_lib = function()
if templates ~= nil then
return templates
end
if templates ~= nil then return templates end
local ok, module = pcall(require, "avante_templates")
---@cast module AvanteTemplates
---@cast ok boolean
if not ok then
return nil
end
if not ok then return nil end
templates = module
return templates