Skip to content

Commit

Permalink
[spinner] Code refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
andyone committed Jul 13, 2023
1 parent f0d5005 commit c7c7bcf
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
4 changes: 0 additions & 4 deletions spinner/spinner.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,10 +159,6 @@ func showSpinner() {
}

func stopSpinner(action uint8) {
if !isActive.Load() {
return
}

isActive.Store(false)

for range time.NewTicker(time.Millisecond).C {
Expand Down
1 change: 0 additions & 1 deletion spinner/spinner_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,4 @@ func (s *SpinnerSuite) TestSpinner(c *C) {
Done(true)

Skip()
stopSpinner(_ACTION_DONE)
}

0 comments on commit c7c7bcf

Please sign in to comment.