summaryrefslogtreecommitdiff
path: root/app/services/protected_tags/update_service.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/services/protected_tags/update_service.rb')
-rw-r--r--app/services/protected_tags/update_service.rb7
1 files changed, 2 insertions, 5 deletions
diff --git a/app/services/protected_tags/update_service.rb b/app/services/protected_tags/update_service.rb
index 8a2419efd7b..aea6a48968d 100644
--- a/app/services/protected_tags/update_service.rb
+++ b/app/services/protected_tags/update_service.rb
@@ -1,13 +1,10 @@
module ProtectedTags
class UpdateService < BaseService
- attr_reader :protected_tag
-
def execute(protected_tag)
raise Gitlab::Access::AccessDeniedError unless can?(current_user, :admin_project, project)
- @protected_tag = protected_tag
- @protected_tag.update(params)
- @protected_tag
+ protected_tag.update(params)
+ protected_tag
end
end
end