Skip to content

Commit a90ae77

Browse files
committed
chore: Address rubocop offense
Lint/UselessConstantScoping: Useless private access modifier for constant scope.
1 parent 871a68f commit a90ae77

File tree

1 file changed

+1
-1
lines changed
  • instrumentation/rack/lib/opentelemetry/instrumentation/rack/middlewares

1 file changed

+1
-1
lines changed

instrumentation/rack/lib/opentelemetry/instrumentation/rack/middlewares/event_handler.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ class EventHandler
4343
include ::Rack::Events::Abstract
4444

4545
OTEL_TOKEN_AND_SPAN = 'otel.rack.token_and_span'
46+
EMPTY_HASH = {}.freeze
4647

4748
# Creates a server span for this current request using the incoming parent context
4849
# and registers them as the {current_span}
@@ -117,7 +118,6 @@ def on_finish(request, response)
117118

118119
private
119120

120-
EMPTY_HASH = {}.freeze
121121
def extract_request_headers(env)
122122
return EMPTY_HASH if allowed_request_headers.empty?
123123

0 commit comments

Comments
 (0)