Skip to content

Commit

Permalink
Removed flatten
Browse files Browse the repository at this point in the history
  • Loading branch information
aantix committed May 15, 2023
1 parent a10bdd0 commit bf9f842
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/callstacking/rails/loader.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ def initialize(instrumenter, excluded: [])
end

def instrument_existing
objs = []
ObjectSpace.each_object(Module){|ob| objs << [ob, ((Object.const_source_location(ob.to_s) rescue nil))].flatten}
objs.each{|o| filter_klass(o.first, o.second)}
ObjectSpace.each_object(Module){|ob| filter_klass(ob, (Object.const_source_location(ob.to_s) rescue nil))}
end

def on_load
Expand Down

0 comments on commit bf9f842

Please sign in to comment.