Commit c2be8df75232dea7cde52f1b095573fdd7ad9f13

Authored by Daniela Feitosa
1 parent 356b649b

Removed unnecessary "then" on condition

(ActionItem2277)
Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
lib/feed_handler.rb
@@ -54,7 +54,7 @@ class FeedHandler @@ -54,7 +54,7 @@ class FeedHandler
54 RAILS_DEFAULT_LOGGER.info("Processing %s with id = %d" % [container.class.name, container.id]) 54 RAILS_DEFAULT_LOGGER.info("Processing %s with id = %d" % [container.class.name, container.id])
55 begin 55 begin
56 container.class.transaction do 56 container.class.transaction do
57 - if container.update_errors > FeedHandler.max_errors && container.fetched_at < (Time.now - FeedHandler.disabled_period) then 57 + if container.update_errors > FeedHandler.max_errors && container.fetched_at < (Time.now - FeedHandler.disabled_period)
58 container.enabled = true 58 container.enabled = true
59 container.update_errors = 0 59 container.update_errors = 0
60 container.save 60 container.save