diff options
author | Vladislav Kaverin <vladislav.v.kaverin@gmail.com> | 2017-12-03 02:18:36 +0300 |
---|---|---|
committer | Vladislav Kaverin <v.kaverin@corp.vk.com> | 2017-12-03 02:37:29 +0300 |
commit | 5efd2dd035f700ed0ff2a14fb60e17d8259749e5 (patch) | |
tree | 6433e4aee90dd80fb688ab4c0de85a37dcb5817b /app/helpers/graph_helper.rb | |
parent | e0f84130567dc34edf1ae75fcf595e24991d2fa9 (diff) |
Fix graph notes number duplication.
Function `pluralize` already returns the number along with pluralized word.
Diffstat (limited to 'app/helpers/graph_helper.rb')
-rw-r--r-- | app/helpers/graph_helper.rb | 2 |
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 |