Commit 6139e143 authored by James Lopez's avatar James Lopez

fixing some rubucop warnings

parent 9d306eb1
...@@ -28,12 +28,11 @@ class Import::GitlabProjectController < Import::BaseController ...@@ -28,12 +28,11 @@ class Import::GitlabProjectController < Import::BaseController
def create def create
@file = params[:file] @file = params[:file]
# @project_name =
repo_owner = current_user.username repo_owner = current_user.username
@target_namespace = params[:new_namespace].presence || repo_owner @target_namespace = params[:new_namespace].presence || repo_owner
namespace = get_or_create_namespace || (render and return) # namespace = get_or_create_namespace || (render and return)
@project = Gitlab::ImportExport::ImportService.execute(archive_file: file, owner: repo_owner) @project = Gitlab::ImportExport::ImportService.execute(archive_file: file, owner: repo_owner)
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment