diff options
Diffstat (limited to 'app/services/snippets/update_service.rb')
-rw-r--r-- | app/services/snippets/update_service.rb | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/app/services/snippets/update_service.rb b/app/services/snippets/update_service.rb index f8374cc88bb..d83b21271c0 100644 --- a/app/services/snippets/update_service.rb +++ b/app/services/snippets/update_service.rb @@ -23,14 +23,12 @@ module Snippets update_snippet_attributes(snippet) - if Feature.enabled?(:snippet_spam) - Spam::SpamActionService.new( - spammable: snippet, - spam_params: spam_params, - user: current_user, - action: :update - ).execute - end + Spam::SpamActionService.new( + spammable: snippet, + spam_params: spam_params, + user: current_user, + action: :update + ).execute if save_and_commit(snippet) Gitlab::UsageDataCounters::SnippetCounter.count(:update) |