diff --git a/app/services/system_note_service.rb b/app/services/system_note_service.rb index bf251816e7e8711cc917817194912446327a388e..1ce66d50368805498468337c29c2831463b7de8d 100644 --- a/app/services/system_note_service.rb +++ b/app/services/system_note_service.rb @@ -347,7 +347,7 @@ module SystemNoteService notes = notes.where(noteable_id: noteable.id) end - notes_for_mentioner(mentioner, noteable, notes).count > 0 + notes_for_mentioner(mentioner, noteable, notes).exists? end # Build an Array of lines detailing each commit added in a merge request