diff options
Diffstat (limited to 'app/services')
-rw-r--r-- | app/services/projects/import_service.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/services/projects/import_service.rb b/app/services/projects/import_service.rb index 20eee4fd439..c950da44aba 100644 --- a/app/services/projects/import_service.rb +++ b/app/services/projects/import_service.rb @@ -87,6 +87,10 @@ module Projects end end + def importer_class + Gitlab::ImportSources.importer(project.import_type) + end + def has_importer? Gitlab::ImportSources.importer_names.include?(project.import_type) end @@ -95,10 +99,6 @@ module Projects importer_class.new(project) end - def importer_class - Gitlab::ImportSources.importer(project.import_type) - end - def unknown_url? project.import_url == Project::UNKNOWN_IMPORT_URL end |