#889: small refactoring

This commit is contained in:
Vokhmin Alexey V 2013-02-05 14:29:12 +04:00
parent a107dc044d
commit 7898c8c47e
1 changed files with 17 additions and 17 deletions

View File

@ -7,7 +7,8 @@ module AbfWorker
bl = BuildList.find options['id'] bl = BuildList.find options['id']
status = options['status'].to_i status = options['status'].to_i
unless restart_task(bl, status, options) return if restart_task(bl, status, options)
item = find_or_create_item(bl) item = find_or_create_item(bl)
fill_container_data(bl, options) if status != STARTED fill_container_data(bl, options) if status != STARTED
@ -26,7 +27,6 @@ module AbfWorker
item.update_attributes({:status => BuildList::BUILD_CANCELED}) item.update_attributes({:status => BuildList::BUILD_CANCELED})
end end
end end
end
class << self class << self
protected protected