Skip to content

Commit e687c3f

Browse files
committed
Fix duplicate contributor names when generating changelog
Follow up rubocop/rubocop@2d4b944
1 parent f91cc37 commit e687c3f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tasks/changelog.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,9 @@ def merge_content
129129
end
130130

131131
def new_contributor_lines
132-
contributors
133-
.map { |user| format(CONTRIBUTOR, user: user) }
134-
.reject { |line| @rest.include?(line) }
132+
unique_contributor_names = contributors.map { |user| format(CONTRIBUTOR, user: user) }.uniq
133+
134+
unique_contributor_names.reject { |line| @rest.include?(line) }
135135
end
136136

137137
def contributors

0 commit comments

Comments
 (0)