lib/rack/traffic_signal/middleware.rb in rack-traffic-signal-0.1.2 vs lib/rack/traffic_signal/middleware.rb in rack-traffic-signal-0.1.3
- old
+ new
@@ -59,9 +59,10 @@
end
end
def maintenance_application(method, path)
enabled_maintenance_mode = config.maintenance_status
+ return nil if enabled_maintenance_mode.length == 0
enabled_cfg = if enabled_maintenance_mode.include? :all
config.maintenance_group.values.inject([]) do |a, p|
a + p.values
end
\ No newline at end of file