summaryrefslogtreecommitdiff
path: root/lib/ci
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2016-06-29 17:44:39 +0800
committerLin Jen-Shin <godfat@godfat.org>2016-06-29 17:44:39 +0800
commit9d8dca08e440ccb730f20dcd79b3b47aef8aeb2e (patch)
tree0941c709655e72f6671e7408b72f83416c785203 /lib/ci
parent1bc0d732f604d7a4a616ba34b8ccbb1987038951 (diff)
downloadgitlab-ce-9d8dca08e440ccb730f20dcd79b3b47aef8aeb2e.tar.gz
Use AR callbacks as suggested by:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/4964#note_12744656
Diffstat (limited to 'lib/ci')
-rw-r--r--lib/ci/api/builds.rb1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/ci/api/builds.rb b/lib/ci/api/builds.rb
index f6a8d907066..260ac81f5fa 100644
--- a/lib/ci/api/builds.rb
+++ b/lib/ci/api/builds.rb
@@ -147,7 +147,6 @@ module Ci
build.artifacts_file = artifacts
build.artifacts_metadata = metadata
build.artifacts_expire_in = params['expire_in']
- build.artifacts_size = artifacts.size
if build.save
present(build, with: Entities::BuildDetails)