0
0
Fork 0

Autofix Rubocop Rails/FindById (#23762)

This commit is contained in:
Nick Schonning 2023-02-20 20:21:48 -05:00 committed by GitHub
parent 35d032500b
commit 434770f580
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 9 deletions

View file

@ -24,7 +24,7 @@ class Api::V1::NotificationsController < Api::BaseController
end
def dismiss
current_account.notifications.find_by!(id: params[:id]).destroy!
current_account.notifications.find(params[:id]).destroy!
render_empty
end