Refactor Ci::Build#raw_trace
This commit is contained in:
parent
7a3cdd4aa0
commit
52fe609886
|
@ -217,11 +217,8 @@ module Ci
|
||||||
end
|
end
|
||||||
|
|
||||||
def raw_trace
|
def raw_trace
|
||||||
if File.exist?(path_to_trace)
|
if File.exist?(trace_file_path)
|
||||||
File.read(path_to_trace)
|
File.read(trace_file_path)
|
||||||
elsif has_old_trace_file?
|
|
||||||
# Temporary fix for build trace data integrity
|
|
||||||
File.read(old_path_to_trace)
|
|
||||||
else
|
else
|
||||||
# backward compatibility
|
# backward compatibility
|
||||||
read_attribute :trace
|
read_attribute :trace
|
||||||
|
|
Loading…
Reference in New Issue