refactor(loader): format annotations

This commit is contained in:
Lewis Russell
2024-10-31 14:57:45 +00:00
parent 086e598a6e
commit be04bbf781

View File

@@ -47,10 +47,10 @@ local M = {}
--- @alias vim.loader.Stats table<string, {total:number, time:number, [string]:number?}?>
---@nodoc
--- @private
M.path = vim.fn.stdpath('cache') .. '/luac'
---@nodoc
--- @private
M.enabled = false
--- @type vim.loader.Stats
@@ -144,7 +144,7 @@ local function readfile(path, mode)
local f = uv.fs_open(path, 'r', mode)
if f then
local size = assert(uv.fs_fstat(f)).size
local data = uv.fs_read(f, size, 0) --[[@as string?]]
local data = uv.fs_read(f, size, 0)
uv.fs_close(f)
return data
end