summaryrefslogtreecommitdiff
path: root/app/services/protected_branches/destroy_service.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/services/protected_branches/destroy_service.rb')
-rw-r--r--app/services/protected_branches/destroy_service.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/protected_branches/destroy_service.rb b/app/services/protected_branches/destroy_service.rb
index 47332ace417..01d3b68314f 100644
--- a/app/services/protected_branches/destroy_service.rb
+++ b/app/services/protected_branches/destroy_service.rb
@@ -5,7 +5,7 @@ module ProtectedBranches
def execute(protected_branch)
raise Gitlab::Access::AccessDeniedError unless can?(current_user, :destroy_protected_branch, protected_branch)
- protected_branch.destroy
+ protected_branch.destroy.tap { refresh_cache }
end
end
end