lib/new_relic/agent/harvester.rb in newrelic_rpm-9.0.0 vs lib/new_relic/agent/harvester.rb in newrelic_rpm-9.1.0

- old
+ new

@@ -12,12 +12,10 @@ # We intentionally don't set our pid as started at this point. # Startup routines must call mark_started when they consider us set! @starting_pid = nil @after_forker = after_forker - if events - events.subscribe(:start_transaction, &method(:on_transaction)) - end + events&.subscribe(:start_transaction, &method(:on_transaction)) end def on_transaction(*_) return unless restart_in_children_enabled? && needs_restart? &&