Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladislav Kaverin <vladislav.v.kaverin@gmail.com>2017-12-03 02:18:36 +0300
committerVladislav Kaverin <v.kaverin@corp.vk.com>2017-12-03 02:37:29 +0300
commit5efd2dd035f700ed0ff2a14fb60e17d8259749e5 (patch)
tree6433e4aee90dd80fb688ab4c0de85a37dcb5817b /app/helpers
parente0f84130567dc34edf1ae75fcf595e24991d2fa9 (diff)
Fix graph notes number duplication.
Function `pluralize` already returns the number along with pluralized word.
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/graph_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/graph_helper.rb b/app/helpers/graph_helper.rb
index f7e17f5cc01..6d303ba857d 100644
--- a/app/helpers/graph_helper.rb
+++ b/app/helpers/graph_helper.rb
@@ -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