Fix graph notes number duplication.

Function `pluralize` already returns the number along with pluralized word.
This commit is contained in:
Vladislav Kaverin 2017-12-02 23:18:36 +00:00 committed by Vladislav Kaverin
parent e0f8413056
commit 5efd2dd035
2 changed files with 6 additions and 1 deletions

View file

@ -8,7 +8,7 @@ module GraphHelper
# append note count
notes_count = @graph.notes[commit.id]
refs << "[#{notes_count} #{pluralize(notes_count, 'note')}]" if notes_count > 0
refs << "[#{pluralize(notes_count, 'note')}]" if notes_count > 0
refs
end

View file

@ -0,0 +1,5 @@
---
title: Fix graph notes number duplication.
merge_request: 15696
author: Vladislav Kaverin
type: fixed