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:
Diffstat (limited to 'app/workers')
-rw-r--r--app/workers/repository_import_worker.rb14
1 files changed, 7 insertions, 7 deletions
diff --git a/app/workers/repository_import_worker.rb b/app/workers/repository_import_worker.rb
index 3fb41a528c2..5f9970d3795 100644
--- a/app/workers/repository_import_worker.rb
+++ b/app/workers/repository_import_worker.rb
@@ -10,13 +10,13 @@ class RepositoryImportWorker
project.path_with_namespace,
project.import_url)
- if project.import_type == 'github'
- result_of_data_import = Gitlab::GithubImport::Importer.new(project).execute
- elsif project.import_type == 'gitlab'
- result_of_data_import = Gitlab::GitlabImport::Importer.new(project).execute
- else
- result_of_data_import = true
- end
+ result_of_data_import = if project.import_type == 'github'
+ Gitlab::GithubImport::Importer.new(project).execute
+ elsif project.import_type == 'gitlab'
+ Gitlab::GitlabImport::Importer.new(project).execute
+ else
+ true
+ end
if result && result_of_data_import
project.import_finish