Skip to content

Commit

Permalink
Fix rubocop error
Browse files Browse the repository at this point in the history
  • Loading branch information
sandboxws committed Apr 24, 2021
1 parent c0a1f2c commit 86cba91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ddtrace/contrib/active_record/utils.rb
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def self.db_config(connection_pool)
end

def self.extract_caller_path(callers)
caller_path = callers.reject { |c| c =~ %r{lib/ruby/gems} }[0...5]
caller_path = callers.reject { |c| c =~ c.include?('lib/ruby/gems') }[0...5]
# Handle cases when the db query is triggered from inside of a Rubygem
caller_path = callers[0...5] if caller_path.nil?
caller_path.join(",\n")
Expand Down

0 comments on commit 86cba91

Please sign in to comment.