Skip to content

Commit

Permalink
Change to remove unnecessary check from registerd multi spinners
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrmurach committed Sep 9, 2017
1 parent cd0c4d5 commit cd458fa
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions lib/tty/spinner/multi.rb
Original file line number Diff line number Diff line change
Expand Up @@ -204,23 +204,20 @@ def error?
#
# @api public
def stop
@top_spinner.stop if @top_spinner
@spinners.dup.each(&:stop)
end

# Stop all spinners with success status
#
# @api public
def success
@top_spinner.success if @top_spinner
@spinners.dup.each(&:success)
end

# Stop all spinners with error status
#
# @api public
def error
@top_spinner.error if @top_spinner
@spinners.dup.each(&:error)
end

Expand Down

0 comments on commit cd458fa

Please sign in to comment.