Skip to content
Snippets Groups Projects
Commit b5a23197 authored by Lin Jen-Shin's avatar Lin Jen-Shin
Browse files

Explicitly set to nil when artifacts don't exist:

parent 596f4688
No related branches found
No related tags found
No related merge requests found
Loading
@@ -384,6 +384,8 @@ module Ci
Loading
@@ -384,6 +384,8 @@ module Ci
def update_artifacts_size def update_artifacts_size
self.artifacts_size = if artifacts_file.exists? self.artifacts_size = if artifacts_file.exists?
artifacts_file.size artifacts_file.size
else
nil
end end
end end
   
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment