Fix the syntax ambiguity on credit-line-bug (#537)

* fix a syntax ambiguity
This commit is contained in:
Lucas Huang 2017-06-27 10:45:57 -07:00 committed by Olle Jonsson
parent fb7e21f9f8
commit d0e7593e98

View File

@ -22,7 +22,7 @@ module GitHubChangelogGenerator
log += File.read(options[:base]) if File.file?(options[:base]) log += File.read(options[:base]) if File.file?(options[:base])
credit_line = "\* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*" credit_line = "\* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*"
log += "\n\n\#{credit_line}" if log.include? credit_line == false log += "\n\n\#{credit_line}" unless log.include?(credit_line)
@log = log @log = log
end end