summaryrefslogtreecommitdiff
path: root/lib/gitlab/github_import
diff options
context:
space:
mode:
authorDouwe Maan <douwe@selenight.nl>2017-11-15 13:27:37 +0100
committerDouwe Maan <douwe@selenight.nl>2017-11-15 13:40:35 +0100
commit8da236611b5182a1105111904027ae3e74ed1682 (patch)
tree40d3e2de5330495f382bfda4ea07762546cd1630 /lib/gitlab/github_import
parent148f40792c5a619054f71ec4ece522fb0adfbda8 (diff)
downloadgitlab-ce-8da236611b5182a1105111904027ae3e74ed1682.tar.gz
Prefer polymorphism over specific type checks in Import servicedm-import-service-polymorphism
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