Skip to content

Commit

Permalink
Update lib/datadog/di/code_tracker.rb
Browse files Browse the repository at this point in the history
Co-authored-by: Sergey Fedorov <oni.strech@gmail.com>
  • Loading branch information
p-datadog and Strech authored Sep 25, 2024
1 parent 657f8bf commit ed08f40
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/datadog/di/code_tracker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,8 @@ def active?
def iseqs_for_path(suffix)
registry_lock.synchronize do
exact = registry[suffix]
if exact
return [exact]
end
return [exact] if exact

inexact = []
registry.each do |path, iseq|
# Exact match is not possible here, meaning any matching path
Expand Down

0 comments on commit ed08f40

Please sign in to comment.