From 598ee57330438c6cf5dfe21ecebf4e58606adbed Mon Sep 17 00:00:00 2001 From: Maas Lalani Date: Thu, 28 Mar 2024 13:21:51 -0400 Subject: [PATCH] fix: lint --- spin/command.go | 5 +---- 1 file changed, 1 insertion(+), 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 {