summaryrefslogtreecommitdiff
path: root/app/services
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-11-11 16:26:43 +0100
committerDouwe Maan <douwe@gitlab.com>2015-11-18 12:02:05 +0100
commita0519818cb4ff90d6a1d66b6360ec94f05bc79ec (patch)
tree87cef0683696174c2881fe12e694c0234d35c0c3 /app/services
parent7b405d306431448f384591de792497e719d71caa (diff)
downloadgitlab-ce-a0519818cb4ff90d6a1d66b6360ec94f05bc79ec.tar.gz
Tweak code formatting.
Diffstat (limited to 'app/services')
-rw-r--r--app/services/projects/create_service.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/services/projects/create_service.rb b/app/services/projects/create_service.rb
index 5b84527eccf..700a1db04d8 100644
--- a/app/services/projects/create_service.rb
+++ b/app/services/projects/create_service.rb
@@ -55,7 +55,9 @@ module Projects
@project.save
if @project.persisted? && !@project.import?
- raise 'Failed to create repository' unless @project.create_repository
+ unless @project.create_repository
+ raise 'Failed to create repository'
+ end
end
end
@@ -94,9 +96,7 @@ module Projects
@project.team << [current_user, :master, current_user]
end
- if @project.import?
- @project.import_start
- end
+ @project.import_start if @project.import?
end
end
end