diff --git a/spinner/spinner.go b/spinner/spinner.go index 475eb4c5..3326ea4a 100644 --- a/spinner/spinner.go +++ b/spinner/spinner.go @@ -159,10 +159,6 @@ func showSpinner() { } func stopSpinner(action uint8) { - if !isActive.Load() { - return - } - isActive.Store(false) for range time.NewTicker(time.Millisecond).C { diff --git a/spinner/spinner_test.go b/spinner/spinner_test.go index f6d55de5..903f9ba4 100644 --- a/spinner/spinner_test.go +++ b/spinner/spinner_test.go @@ -47,5 +47,4 @@ func (s *SpinnerSuite) TestSpinner(c *C) { Done(true) Skip() - stopSpinner(_ACTION_DONE) }