Skip to content

Commit

Permalink
Avoid Rubocop Style/EmptyLiteral false-positive
Browse files Browse the repository at this point in the history
  • Loading branch information
mshibuya committed Sep 1, 2024
1 parent 8a074f6 commit 2ba927c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/carrierwave/uploader/callbacks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ module Callbacks
included do
class_attribute :_before_callbacks, :_after_callbacks,
:instance_writer => false
self._before_callbacks = Hash.new []
self._after_callbacks = Hash.new []
self._before_callbacks = Hash.new [] # rubocop:disable Style/EmptyLiteral
self._after_callbacks = Hash.new [] # rubocop:disable Style/EmptyLiteral
end

def with_callbacks(kind, *args)
Expand Down

0 comments on commit 2ba927c

Please sign in to comment.