diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2017-04-17 16:29:47 +0800 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2017-04-17 16:29:47 +0800 |
commit | dac23fa233f98b521065fd3f21f6183f84b562d3 (patch) | |
tree | 0445234bde7dfd4d0e912f8eac3fb6eacf15553a | |
parent | c26b126502d4025230aa80e7d26736e1398c5022 (diff) | |
download | gitlab-ce-dac23fa233f98b521065fd3f21f6183f84b562d3.tar.gz |
Don't try to read if there's no trace
-rw-r--r-- | lib/gitlab/ci/trace.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/gitlab/ci/trace.rb b/lib/gitlab/ci/trace.rb index 5b835bb669a..b980e29e9c3 100644 --- a/lib/gitlab/ci/trace.rb +++ b/lib/gitlab/ci/trace.rb @@ -50,6 +50,8 @@ module Gitlab end def read + return unless exist? + stream = Gitlab::Ci::Trace::Stream.new do if current_path File.open(current_path, "rb") |