Autofix Rubocop Rails/FindById (#23762)

This commit is contained in:
Nick Schonning authored and GitHub committed 2023-02-21 10:21:48 +09:00
1 parent 35d032500b
commit 434770f580
3 files changed
+2 -9

No files matched your search

@@ -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