Skip to content

Commit

Permalink
Improve variable naming for Instrumentation.gateway.push return
Browse files Browse the repository at this point in the history
  • Loading branch information
y9v committed Jan 20, 2025
1 parent 15afd41 commit 11512de
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/datadog/appsec/contrib/graphql/appsec_trace.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def execute_multiplex(multiplex:)

gateway_multiplex = Gateway::Multiplex.new(multiplex)

multiplex_return, = Instrumentation.gateway.push('graphql.multiplex', gateway_multiplex) do
multiplex_return, _gateway_multiplex = Instrumentation.gateway.push('graphql.multiplex', gateway_multiplex) do
super
end

Expand Down
2 changes: 1 addition & 1 deletion lib/datadog/appsec/contrib/rack/request_body_middleware.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def call(env)

http_response = nil
interrupt_params = catch(::Datadog::AppSec::Ext::INTERRUPT) do
http_response, = Instrumentation.gateway.push('rack.request.body', Gateway::Request.new(env)) do
http_response, _request = Instrumentation.gateway.push('rack.request.body', Gateway::Request.new(env)) do
@app.call(env)
end

Expand Down
2 changes: 1 addition & 1 deletion lib/datadog/appsec/contrib/rack/request_middleware.rb
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def call(env)
gateway_response = nil

interrupt_params = catch(::Datadog::AppSec::Ext::INTERRUPT) do
http_response, = Instrumentation.gateway.push('rack.request', gateway_request) do
http_response, _gateway_request = Instrumentation.gateway.push('rack.request', gateway_request) do
@app.call(env)
end

Expand Down
2 changes: 1 addition & 1 deletion lib/datadog/appsec/contrib/rails/patcher.rb
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def process_action(*args)

gateway_request = Gateway::Request.new(request)

http_response, = Instrumentation.gateway.push('rails.request.action', gateway_request) do
http_response, _gateway_request = Instrumentation.gateway.push('rails.request.action', gateway_request) do
super
end

Expand Down
2 changes: 1 addition & 1 deletion lib/datadog/appsec/contrib/sinatra/patcher.rb
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def dispatch!

gateway_request = Gateway::Request.new(env)

request_return, = Instrumentation.gateway.push('sinatra.request.dispatch', gateway_request) do
request_return, _gateway_request = Instrumentation.gateway.push('sinatra.request.dispatch', gateway_request) do
super
end

Expand Down

0 comments on commit 11512de

Please sign in to comment.