From d5ac4ea32fea3c05338380714d576d33bacb4889 Mon Sep 17 00:00:00 2001 From: Stan Hu Date: Sun, 8 Jul 2018 21:36:02 -0700 Subject: Fix Rubocop error --- app/controllers/import/bitbucket_server_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/controllers/import') diff --git a/app/controllers/import/bitbucket_server_controller.rb b/app/controllers/import/bitbucket_server_controller.rb index 56bd0c1d2c0..a3c24422e63 100644 --- a/app/controllers/import/bitbucket_server_controller.rb +++ b/app/controllers/import/bitbucket_server_controller.rb @@ -31,7 +31,7 @@ class Import::BitbucketServerController < Import::BaseController unless repo return render json: { errors: "Project #{@project_key}/#{@repo_slug} could not be found" }, status: :unprocessable_entity - end + end project_name = params[:new_name].presence || repo.name -- cgit v1.2.1