Skip to content

Commit

Permalink
rubocop -a; rubocop -A
Browse files Browse the repository at this point in the history
  • Loading branch information
ColinDKelley committed Feb 28, 2024
1 parent e84df09 commit f186b2f
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ group :development do
gem 'netrc', require: false
gem 'octokit', require: false
gem 'pry-rescue'
gem 'rubocop'
gem 'rubocop', require: false
gem 'yard', require: false
end
2 changes: 1 addition & 1 deletion lib/listen/logger.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def default_logger

::Logger.new(STDERR, level: level)
end

def adapter_warn_behavior_callback(message)
if adapter_warn_behavior.respond_to?(:call)
case behavior = adapter_warn_behavior.call(message)
Expand Down
2 changes: 1 addition & 1 deletion lib/listen/silencer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def configure(options)
end

def silenced?(relative_path, type)
path = relative_path.to_s # in case it is a Pathname
path = relative_path.to_s # in case it is a Pathname

_ignore?(path) || (only_patterns && type == :file && !_only?(path))
end
Expand Down
2 changes: 1 addition & 1 deletion spec/lib/listen/logger_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@
end

[false, nil].each do |behavior|
context 'when the message matches a #{behavior} pattern' do
context "when the message matches a #{behavior} pattern" do
let(:message) { "USE #{behavior.inspect}" }
it 'respects :silent' do
expect(Listen).not_to receive(:warn).with(message)
Expand Down
2 changes: 1 addition & 1 deletion spec/lib/listen/record_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def dir_entries_for(hash)

def real_directory(hash)
dir_entries_for(hash)
hash.each do |dir, _|
hash.each_key do |dir|
realpath(dir)
end
end
Expand Down

0 comments on commit f186b2f

Please sign in to comment.