diff options
Diffstat (limited to 'app/services/projects/after_rename_service.rb')
-rw-r--r-- | app/services/projects/after_rename_service.rb | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/app/services/projects/after_rename_service.rb b/app/services/projects/after_rename_service.rb index a2cdb87e631..6d389035922 100644 --- a/app/services/projects/after_rename_service.rb +++ b/app/services/projects/after_rename_service.rb @@ -49,10 +49,8 @@ module Projects def first_ensure_no_registry_tags_are_present return unless project.has_container_registry_tags? - raise RenameFailedError.new( - "Project #{full_path_before} cannot be renamed because images are " \ + raise RenameFailedError, "Project #{full_path_before} cannot be renamed because images are " \ "present in its container registry" - ) end def expire_caches_before_rename @@ -144,9 +142,9 @@ module Projects Gitlab::AppLogger.error(error) - raise RenameFailedError.new(error) + raise RenameFailedError, error end end end -Projects::AfterRenameService.prepend_if_ee('EE::Projects::AfterRenameService') +Projects::AfterRenameService.prepend_mod_with('Projects::AfterRenameService') |