Commit 7ee5860a authored by Marius Bobin's avatar Marius Bobin

Make attr readers private

parent 2f3b2820
...@@ -5,8 +5,6 @@ module Ci ...@@ -5,8 +5,6 @@ module Ci
include ::Gitlab::Utils::StrongMemoize include ::Gitlab::Utils::StrongMemoize
include Checksummable include Checksummable
attr_reader :job, :trace_metadata
def initialize(job, trace_metadata) def initialize(job, trace_metadata)
@job = job @job = job
@trace_metadata = trace_metadata @trace_metadata = trace_metadata
...@@ -26,6 +24,8 @@ module Ci ...@@ -26,6 +24,8 @@ module Ci
private private
attr_reader :job, :trace_metadata
def clone_file!(src_stream, temp_dir) def clone_file!(src_stream, temp_dir)
FileUtils.mkdir_p(temp_dir) FileUtils.mkdir_p(temp_dir)
Dir.mktmpdir("tmp-trace-#{job.id}", temp_dir) do |dir_path| Dir.mktmpdir("tmp-trace-#{job.id}", temp_dir) do |dir_path|
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment