Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix typo in annotation for enable_recording #620

Merged
merged 1 commit into from
Sep 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lua/plenary/job.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ local F = require "plenary.functional"
---@field detached? boolean Spawn the child in a detached state making it a process group leader
---@field skip_validation? boolean Skip validating the arguments
---@field enable_handlers? boolean If set to false, disables all callbacks associated with output (default: true)
---@field enabled_recording? boolean
---@field enable_recording? boolean
---@field on_start? fun()
---@field on_stdout? fun(error: string, data: string, self?: Job)
---@field on_stderr? fun(error: string, data: string, self?: Job)
Expand Down Expand Up @@ -457,12 +457,12 @@ function Job:sync(timeout, wait_interval)
end

function Job:result()
assert(self.enable_recording, "'enabled_recording' is not enabled for this job.")
assert(self.enable_recording, "'enable_recording' is not enabled for this job.")
return self._stdout_results
end

function Job:stderr_result()
assert(self.enable_recording, "'enabled_recording' is not enabled for this job.")
assert(self.enable_recording, "'enable_recording' is not enabled for this job.")
return self._stderr_results
end

Expand Down
Loading