diff options
author | Maas Lalani <maas@lalani.dev> | 2024-03-28 13:21:51 -0400 |
---|---|---|
committer | Maas Lalani <maas@lalani.dev> | 2024-03-28 13:21:51 -0400 |
commit | 598ee57330438c6cf5dfe21ecebf4e58606adbed (patch) | |
tree | fb0e15b7f754dab05ebba5c8dd513935874abb40 | |
parent | 4cc4611a34798591c8c058347449543dceba9a7b (diff) |
fix: lint
-rw-r--r-- | spin/command.go | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/spin/command.go b/spin/command.go index 3c55e1d..6c7e1ea 100644 --- a/spin/command.go +++ b/spin/command.go @@ -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 { |