summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2018-07-06 15:25:59 +0900
committerShinya Maeda <shinya@gitlab.com>2018-07-06 15:25:59 +0900
commita52b1f2446aaac64e943d7e17defb9bedb068dd4 (patch)
tree062345eae8eefee5d08ea0b4a46a5fe440cc6705
parent334ed9c52954ed9e136400cde168e034fc3b05db (diff)
downloadgitlab-ce-a52b1f2446aaac64e943d7e17defb9bedb068dd4.tar.gz
Remove raising error at erase_old_trace!
-rw-r--r--app/models/ci/build.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/ci/build.rb b/app/models/ci/build.rb
index f47e764f554..19949f83351 100644
--- a/app/models/ci/build.rb
+++ b/app/models/ci/build.rb
@@ -399,7 +399,7 @@ module Ci
end
def erase_old_trace!
- raise Gitlab::Ci::Trace::EraseError, 'Old trace does not exist' unless has_old_trace?
+ return unless has_old_trace?
update_column(:trace, nil)
end