mirror of
https://github.com/charmbracelet/gum.git
synced 2024-10-26 07:10:39 +03:00
fix: lint
This commit is contained in:
parent
4cc4611a34
commit
598ee57330
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user