diff options
author | Travis Miller <travis@travismiller.com> | 2018-02-27 08:11:13 -0600 |
---|---|---|
committer | Travis Miller <travis@travismiller.com> | 2018-02-28 20:47:37 -0600 |
commit | 0d8aadeb9df3bd5e4f18e8c22510c2220b74420d (patch) | |
tree | d980132f78bfb88dcb38b811e9befaff3ac47b47 /lib | |
parent | 737b7e3e7d8098493804f2c7261eec58268af2d1 (diff) | |
download | gitlab-ce-0d8aadeb9df3bd5e4f18e8c22510c2220b74420d.tar.gz |
eliminate need or opts argument in shared object
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/import_export/shared.rb | 11 |
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) |