lib/sniffer/config.rb in sniffer-0.4.0 vs lib/sniffer/config.rb in sniffer-0.5.0

- old
+ new

@@ -25,13 +25,11 @@ enabled: false, url_whitelist: nil, url_blacklist: nil def middleware - @middleware ||= begin - Middleware::Chain.new.tap do |chain| - chain.add(Sniffer::Middleware::Logger, logger, severity) - end + @middleware ||= Middleware::Chain.new.tap do |chain| + chain.add(Sniffer::Middleware::Logger, logger, severity) end yield @middleware if block_given? @middleware end