Explicitly set to nil when artifacts don't exist:

Feedback from:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/4964#note_12867273
This commit is contained in:
Lin Jen-Shin 2016-07-04 22:56:23 +08:00
parent 596f46881f
commit b5a2319764
1 changed files with 2 additions and 0 deletions

View File

@ -384,6 +384,8 @@ module Ci
def update_artifacts_size
self.artifacts_size = if artifacts_file.exists?
artifacts_file.size
else
nil
end
end