Commit c2be8df75232dea7cde52f1b095573fdd7ad9f13
1 parent
356b649b
Exists in
master
and in
29 other branches
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 | 54 | RAILS_DEFAULT_LOGGER.info("Processing %s with id = %d" % [container.class.name, container.id]) |
55 | 55 | begin |
56 | 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 | 58 | container.enabled = true |
59 | 59 | container.update_errors = 0 |
60 | 60 | container.save | ... | ... |