mirror of
https://github.com/charmbracelet/gum
synced 2024-05-17 13:46:42 +02:00
fix: lint
This commit is contained in:
parent
4cc4611a34
commit
598ee57330
|
@ -25,6 +25,7 @@ func (o Options) Run() error {
|
||||||
command: o.Command,
|
command: o.Command,
|
||||||
align: o.Align,
|
align: o.Align,
|
||||||
showOutput: o.ShowOutput && isTTY,
|
showOutput: o.ShowOutput && isTTY,
|
||||||
|
showError: o.ShowError,
|
||||||
timeout: o.Timeout,
|
timeout: o.Timeout,
|
||||||
hasTimeout: o.Timeout > 0,
|
hasTimeout: o.Timeout > 0,
|
||||||
}
|
}
|
||||||
|
@ -40,10 +41,6 @@ func (o Options) Run() error {
|
||||||
return exit.ErrAborted
|
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
|
// 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.
|
// STDOUT for piping or other things.
|
||||||
if m.status == 0 {
|
if m.status == 0 {
|
||||||
|
|
Loading…
Reference in a new issue