diff options
author | Jose Ivan Vargas <jvargas@gitlab.com> | 2017-05-18 19:22:02 +0300 |
---|---|---|
committer | Jose Ivan Vargas <jvargas@gitlab.com> | 2017-05-22 23:14:13 +0300 |
commit | acd573f1e612f446d6994b891cf65d189950faff (patch) | |
tree | d7ad7e4c332afb326d3bbd5c34798ad8e9cf6f9b /app/services | |
parent | fbde5e33134df144208840f977a74f346acf450a (diff) |
minor adjustments to the specs
Diffstat (limited to 'app/services')
-rw-r--r-- | app/services/projects/transfer_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/projects/transfer_service.rb b/app/services/projects/transfer_service.rb index eae352d35ce..74fc83b4e77 100644 --- a/app/services/projects/transfer_service.rb +++ b/app/services/projects/transfer_service.rb @@ -12,7 +12,7 @@ module Projects TransferError = Class.new(StandardError) def execute(new_namespace) - if allowed_transfer?(current_user, project, new_namespace) + if !new_namespace.blank? && allowed_transfer?(current_user, project, new_namespace) transfer(project, new_namespace) else error_message = if new_namespace.blank? |