chore(format)

This commit is contained in:
2024-03-16 12:34:49 +01:00
parent 970adcc6ca
commit 8e55b8a20d
3 changed files with 4 additions and 13 deletions

View File

@@ -20,9 +20,7 @@ function M.visit_astrobox_modules(module, visitor)
end
while true do
local entry, type = vim.loop.fs_scandir_next(hdl)
if entry == nil then
break
end
if entry == nil then break end
if type == "file" and vim.endswith(entry, ".lua") then
local mod_name = entry:sub(0, -5) -- cut extension
local ok, mod = pcall(require, "astrobox." .. module .. "." .. mod_name)