Skip to content

Commit

Permalink
Satisfy Rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
noahgibbs committed Jul 27, 2023
1 parent 87211f1 commit 578e95f
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions lacci/lib/shoes/widget.rb
Original file line number Diff line number Diff line change
Expand Up @@ -152,12 +152,8 @@ def destroy
alias_method :remove, :destroy

def clear(&block)
@children.dup.each do |child|
child.destroy
end
if block_given?
append(&block)
end
@children.dup.each(&:destroy)
append(&block) if block_given?
end

def append(&block)
Expand Down

0 comments on commit 578e95f

Please sign in to comment.