From e5cf4cd745514b81e7d12ef36f073823e5cdee96 Mon Sep 17 00:00:00 2001 From: James Lopez Date: Mon, 13 Jun 2016 15:33:28 +0200 Subject: [PATCH] corrected a few warnings --- lib/gitlab/import_export/importer.rb | 2 +- lib/gitlab/import_export/project_tree_restorer.rb | 2 +- lib/gitlab/import_export/repo_restorer.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/gitlab/import_export/importer.rb b/lib/gitlab/import_export/importer.rb index d73ce43b49..8020aab3da 100644 --- a/lib/gitlab/import_export/importer.rb +++ b/lib/gitlab/import_export/importer.rb @@ -7,7 +7,7 @@ module Gitlab new(*args).import end - def initialize(archive_file: , shared:) + def initialize(archive_file:, shared:) @archive_file = archive_file @shared = shared end diff --git a/lib/gitlab/import_export/project_tree_restorer.rb b/lib/gitlab/import_export/project_tree_restorer.rb index dc1e477a82..935bc2d7df 100644 --- a/lib/gitlab/import_export/project_tree_restorer.rb +++ b/lib/gitlab/import_export/project_tree_restorer.rb @@ -73,7 +73,7 @@ module Gitlab relation.values.flatten.each do |sub_relation| if sub_relation.is_a?(Hash) - relation_hash = relation_item[sub_relation.keys.first.to_s] + relation_hash = relation_item[sub_relation.keys.first.to_s] sub_relation = sub_relation.keys.first else relation_hash = relation_item[sub_relation.to_s] diff --git a/lib/gitlab/import_export/repo_restorer.rb b/lib/gitlab/import_export/repo_restorer.rb index d6dcf5dc11..ef4d9c2406 100644 --- a/lib/gitlab/import_export/repo_restorer.rb +++ b/lib/gitlab/import_export/repo_restorer.rb @@ -11,7 +11,7 @@ module Gitlab end def restore - return false unless File.exists?(@path_to_bundle) || wiki? + return false unless File.exist?(@path_to_bundle) || wiki? FileUtils.mkdir_p(path_to_repo)