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:
authorValery Sizov <valery@gitlab.com>2015-02-05 21:31:36 +0300
committerValery Sizov <valery@gitlab.com>2015-02-06 04:03:43 +0300
commit1ac20698a5122111c8e12de4cc59da837b0f9573 (patch)
tree67442cc67cf4d7aa4f3e0c66d11d4728eb4fa8ca /app/workers
parent2d5765bd2ca9b7ce3e4251cb082cbc8c52e51996 (diff)
gitlab.com importer: refactorig
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