chore: Use "destroy!" instead of "destroy" when not checking the return value (#4259)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user