#889: small refactoring
This commit is contained in:
parent
a107dc044d
commit
7898c8c47e
|
@ -7,7 +7,8 @@ module AbfWorker
|
|||
bl = BuildList.find options['id']
|
||||
status = options['status'].to_i
|
||||
|
||||
unless restart_task(bl, status, options)
|
||||
return if restart_task(bl, status, options)
|
||||
|
||||
item = find_or_create_item(bl)
|
||||
fill_container_data(bl, options) if status != STARTED
|
||||
|
||||
|
@ -26,7 +27,6 @@ module AbfWorker
|
|||
item.update_attributes({:status => BuildList::BUILD_CANCELED})
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
class << self
|
||||
protected
|
||||
|
|
Loading…
Reference in New Issue