Remove unecessary lock

This commit is contained in:
Kamil Trzcinski 2016-10-14 17:48:28 +02:00
parent 5904793ad8
commit 308769f82b

View file

@ -3,10 +3,8 @@ class BuildFinishedWorker
def perform(build_id)
Ci::Build.find_by(id: build_id).try do |build|
build.with_lock do
BuildCoverageWorker.new.perform(build.id)
BuildHooksWorker.new.perform(build.id)
end
BuildCoverageWorker.new.perform(build.id)
BuildHooksWorker.new.perform(build.id)
end
end
end