chore: Use "destroy!" instead of "destroy" when not checking the return value (#4259)

This commit is contained in:
Jordan Brough
2022-03-24 01:58:25 -06:00
committed by GitHub
parent 8b9aea231c
commit c2647a1f27
20 changed files with 21 additions and 21 deletions

View File

@@ -38,7 +38,7 @@ class Team < ApplicationRecord
end
def remove_member(user_id)
team_members.find_by(user_id: user_id)&.destroy
team_members.find_by(user_id: user_id)&.destroy!
end
def messages