You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Many of the methods inside lib/new_relic/local_environment.rb consist of a single if statement. Let's clean up these methods by doing an early return instead.
For example:
def check_for_falcon
- if defined?(::Falcon::Server) && NewRelic::LanguageSupport.object_space_usable?+ return unless defined?(::Falcon::Server) && NewRelic::LanguageSupport.object_space_usable?
@discovered_dispatcher = :falcon if find_class_in_object_space(::Falcon::Server)
end
The text was updated successfully, but these errors were encountered:
Many of the methods inside
lib/new_relic/local_environment.rb
consist of a singleif
statement. Let's clean up these methods by doing an early return instead.For example:
The text was updated successfully, but these errors were encountered: