chore: resolve undefined-field

This commit is contained in:
Alexander Courtis
2024-10-28 15:15:23 +11:00
parent 4372e6a217
commit a4a6e6caa3
2 changed files with 10 additions and 8 deletions

View File

@@ -205,8 +205,9 @@ function GitRunner:finalise()
end
end
---Return nil when callback present
---@private
---@return GitPathXY? statuses nil if callback present
---@return GitPathXY?
function GitRunner:execute()
local async = self.opts.callback ~= nil
local profile = log.profile_start("git %s job %s %s", async and "async" or "sync", self.opts.toplevel, self.opts.path)
@@ -238,8 +239,9 @@ function GitRunner:execute()
end
---Static method to run a git process, which will be killed if it takes more than timeout
---Return nil when callback present
---@param opts GitRunnerOpts
---@return GitPathXY? statuses nil if callback present
---@return GitPathXY?
function GitRunner:run(opts)
---@type GitRunner
local runner = {