Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouwe Maan <douwe@selenight.nl>2017-11-15 15:27:37 +0300
committerDouwe Maan <douwe@selenight.nl>2017-11-15 15:40:35 +0300
commit8da236611b5182a1105111904027ae3e74ed1682 (patch)
tree40d3e2de5330495f382bfda4ea07762546cd1630 /lib/gitlab/github_import
parent148f40792c5a619054f71ec4ece522fb0adfbda8 (diff)
Prefer polymorphism over specific type checks in Import service
Diffstat (limited to 'lib/gitlab/github_import')
-rw-r--r--lib/gitlab/github_import/parallel_importer.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/gitlab/github_import/parallel_importer.rb b/lib/gitlab/github_import/parallel_importer.rb
index 81739834b41..6da11e6ef08 100644
--- a/lib/gitlab/github_import/parallel_importer.rb
+++ b/lib/gitlab/github_import/parallel_importer.rb
@@ -11,6 +11,10 @@ module Gitlab
true
end
+ def self.imports_repository?
+ true
+ end
+
def initialize(project)
@project = project
end