Skip to content
Snippets Groups Projects
Commit 484862dc authored by drew cimino's avatar drew cimino Committed by Fabio Pitino
Browse files

Remove unnecessary Ci::Trace#archived_trace_exists? method

parent e41f9d5b
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -141,7 +141,7 @@ def erase
end
 
def raw
if @build.trace.archived_trace_exist?
if @build.trace.archived?
workhorse_set_content_type!
send_upload(@build.job_artifacts_trace.file,
send_params: raw_send_params,
Loading
Loading
Loading
Loading
@@ -681,7 +681,7 @@ def has_live_trace?
end
 
def has_archived_trace?
trace.archived_trace_exist?
trace.archived?
end
 
def artifacts_file
Loading
Loading
Loading
Loading
@@ -74,11 +74,11 @@ def append(data, offset)
end
 
def exist?
archived_trace_exist? || live_trace_exist?
archived? || live_trace_exist?
end
 
def archived_trace_exist?
archived?
def archived?
trace_artifact&.stored?
end
 
def live_trace_exist?
Loading
Loading
@@ -218,10 +218,6 @@ def unsafe_archive!
end
end
 
def archived?
trace_artifact&.stored?
end
def destroy_any_orphan_trace_data!
return unless trace_artifact
 
Loading
Loading
Loading
Loading
@@ -796,8 +796,8 @@
end
end
 
describe '#archived_trace_exist?' do
subject { trace.archived_trace_exist? }
describe '#archived?' do
subject { trace.archived? }
 
context 'when trace does not exist' do
it { is_expected.to be_falsy }
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