Skip to content

Commit 42b8663

Browse files
committed
removes unused error message
1 parent dae5dd9 commit 42b8663

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

app/models/better_together/conversation.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@ def to_s
1717
private
1818

1919
def at_least_one_participant
20-
return unless participants.empty?
21-
22-
errors.add(:conversation_participants, t('pundit.errors.leave_conversation'))
20+
nil unless participants.empty?
2321
end
2422
end
2523
end

0 commit comments

Comments
 (0)