From d0e7593e98fb1cfd2f5355c07468b330f19a8bc3 Mon Sep 17 00:00:00 2001 From: Lucas Huang Date: Tue, 27 Jun 2017 10:45:57 -0700 Subject: [PATCH] Fix the syntax ambiguity on credit-line-bug (#537) * fix a syntax ambiguity --- .../generator/generator_generation.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/github_changelog_generator/generator/generator_generation.rb b/lib/github_changelog_generator/generator/generator_generation.rb index c642766..7312178 100644 --- a/lib/github_changelog_generator/generator/generator_generation.rb +++ b/lib/github_changelog_generator/generator/generator_generation.rb @@ -22,7 +22,7 @@ module GitHubChangelogGenerator 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)*" - log += "\n\n\#{credit_line}" if log.include? credit_line == false + log += "\n\n\#{credit_line}" unless log.include?(credit_line) @log = log end