summaryrefslogtreecommitdiff
path: root/app/services/snippets/create_service.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/services/snippets/create_service.rb')
-rw-r--r--app/services/snippets/create_service.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/app/services/snippets/create_service.rb b/app/services/snippets/create_service.rb
index 0b74bd77e28..155013db344 100644
--- a/app/services/snippets/create_service.rb
+++ b/app/services/snippets/create_service.rb
@@ -38,9 +38,7 @@ module Snippets
private
def save_and_commit
- snippet_saved = @snippet.with_transaction_returning_status do
- @snippet.save && @snippet.store_mentions!
- end
+ snippet_saved = @snippet.save
if snippet_saved && Feature.enabled?(:version_snippets, current_user)
create_repository