lib/contrast/framework/sinatra/support.rb in contrast-agent-3.15.0 vs lib/contrast/framework/sinatra/support.rb in contrast-agent-3.16.0

- old
+ new

@@ -68,13 +68,13 @@ def app_class return nil unless defined?(::Sinatra) && defined?(::Sinatra::Base) @_app_class ||= begin - sinatra_layers = ObjectSpace.each_object(::Sinatra::Base).to_a - result_layer = sinatra_layers.find { |layer| layer.app.nil? } - result_layer - end + sinatra_layers = ObjectSpace.each_object(::Sinatra::Base).to_a + result_layer = sinatra_layers.find { |layer| layer.app.nil? } + result_layer + end end # Iterate over every class that extends Sinatra::Base, pull out its routes # (array of arrays with Mustermann::Sinatra as [][0]) and convert them into # Contrast::Api::Dtm::RouteCoverage