Fix termination in case of empty unreleased section with --unreleased-only option.

This commit is contained in:
Petr Korolev 2015-03-18 09:37:29 +02:00
parent aeaec739f5
commit b0be9f8b06

View File

@ -332,7 +332,7 @@ module GitHubChangelogGenerator
if filtered_issues.empty? && filtered_pull_requests.empty? && newer_tag.nil?
# do not generate empty unreleased section
return nil
return ''
end
self.create_log(filtered_pull_requests, filtered_issues, newer_tag, older_tag_name)