Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mabdinur committed Nov 1, 2024
1 parent 69a3191 commit 09b6274
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions lib/datadog/core/configuration/agent_settings_resolver.rb
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ def should_use_uds?

def mixed_http_and_uds
return @mixed_http_and_uds if defined?(@mixed_http_and_uds)

@mixed_http_and_uds = (configured_hostname || configured_port) && can_use_uds?
if @mixed_http_and_uds
warn_if_configuration_mismatch(
Expand All @@ -256,7 +256,7 @@ def mixed_http_and_uds
]
)
end

@mixed_http_and_uds
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@

it 'logs a warning including the uds path' do
expect(logger).to receive(:warn)
.with(%r{Configuration mismatch.*Using "unix:[\/]{1,3}some/path"})
.with(%r{Configuration mismatch.*Using "unix:[\/]{1,3}some/path"}) # rubocop:disable Style/edundantRegexpCharacterClass

resolver
end
Expand All @@ -207,7 +207,7 @@

it 'logs a warning including the uds configuration' do
expect(logger).to receive(:warn)
.with(%r{Configuration mismatch.*Using "unix:[\/]{1,3}some/path"})
.with(%r{Configuration mismatch.*Using "unix:[\/]{1,3}some/path"}) # rubocop:disable Style/edundantRegexpCharacterClass

resolver
end
Expand Down Expand Up @@ -239,7 +239,7 @@

it 'logs a warning including the uds configuration' do
expect(logger).to receive(:warn)
.with(%r{Configuration mismatch.*Using "unix:[\/]{1,3}some/path"})
.with(%r{Configuration mismatch.*Using "unix:[\/]{1,3}some/path"}) # rubocop:disable Style/edundantRegexpCharacterClass

resolver
end
Expand All @@ -254,7 +254,7 @@

it 'logs a warning including the uds configuration' do
expect(logger).to receive(:warn)
.with(%r{Configuration mismatch.*Using "unix:[\/]{1,3}some/path"})
.with(%r{Configuration mismatch.*Using "unix:[\/]{1,3}some/path"}) # rubocop:disable Style/edundantRegexpCharacterClass

resolver
end
Expand Down

0 comments on commit 09b6274

Please sign in to comment.