lib/sidekiq/throttled/web/stats.rb in sidekiq-throttled-0.6.6 vs lib/sidekiq/throttled/web/stats.rb in sidekiq-throttled-0.6.7

- old
+ new

@@ -35,13 +35,12 @@ private # @return [String] def colorize_count(int, max) percentile = 100.00 * int / max - lvl = case - when 80 <= percentile then "danger" - when 60 <= percentile then "warning" - else "success" + lvl = if 80 <= percentile then "danger" + elsif 60 <= percentile then "warning" + else "success" end %(<span class="label label-#{lvl}">#{int}</span>) end