summaryrefslogtreecommitdiff
path: root/lib/gitlab
diff options
context:
space:
mode:
authorTravis Miller <travis@travismiller.com>2018-02-27 08:11:13 -0600
committerTravis Miller <travis@travismiller.com>2018-02-28 20:47:37 -0600
commit0d8aadeb9df3bd5e4f18e8c22510c2220b74420d (patch)
treed980132f78bfb88dcb38b811e9befaff3ac47b47 /lib/gitlab
parent737b7e3e7d8098493804f2c7261eec58268af2d1 (diff)
downloadgitlab-ce-0d8aadeb9df3bd5e4f18e8c22510c2220b74420d.tar.gz
eliminate need or opts argument in shared object
Diffstat (limited to 'lib/gitlab')
-rw-r--r--lib/gitlab/import_export/shared.rb11
1 files changed, 3 insertions, 8 deletions
diff --git a/lib/gitlab/import_export/shared.rb b/lib/gitlab/import_export/shared.rb
index 012228ca273..3d3d998a6a3 100644
--- a/lib/gitlab/import_export/shared.rb
+++ b/lib/gitlab/import_export/shared.rb
@@ -1,11 +1,10 @@
module Gitlab
module ImportExport
class Shared
- attr_reader :errors, :project, :opts
+ attr_reader :errors, :project
- def initialize(project, opts = {})
+ def initialize(project)
@project = project
- @opts = opts
@errors = []
end
@@ -40,11 +39,7 @@ module Gitlab
end
def relative_archive_path
- if @opts[:relative_path]
- @opts[:relative_path]
- else
- @project.disk_path
- end
+ @project.disk_path
end
def error_out(message, caller)