fix: lint

This commit is contained in:
Maas Lalani 2024-03-28 13:21:51 -04:00
parent 4cc4611a34
commit 598ee57330
No known key found for this signature in database
GPG key ID: 5A6ED5CBF1A0A000

View file

@ -25,6 +25,7 @@ func (o Options) Run() error {
command: o.Command,
align: o.Align,
showOutput: o.ShowOutput && isTTY,
showError: o.ShowError,
timeout: o.Timeout,
hasTimeout: o.Timeout > 0,
}
@ -40,10 +41,6 @@ func (o Options) Run() error {
return exit.ErrAborted
}
if err != nil {
return fmt.Errorf("failed to access stdout: %w", err)
}
// If the command succeeds, and we are printing output and we are in a TTY then push the STDOUT we got to the actual
// STDOUT for piping or other things.
if m.status == 0 {