Skip to content

Commit

Permalink
Update lib/datadog/di.rb
Browse files Browse the repository at this point in the history
Co-authored-by: Ivo Anjo <ivo.anjo@datadoghq.com>
  • Loading branch information
p-datadog and ivoanjo authored Oct 29, 2024
1 parent 83baea3 commit a20af20
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/datadog/di.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@ class << self
# TODO test that activating tracker multiple times preserves
# existing mappings in the registry
def activate_tracking!
@code_tracker ||= CodeTracker.new
# & is demanded by steep, code tracker is always not nil here.
code_tracker&.start
(@code_tracker ||= CodeTracker.new).start
end

# Deactivates code tracking. In normal usage of DI this method should
Expand Down

0 comments on commit a20af20

Please sign in to comment.