Test if @options[:base] is set

This commit is contained in:
Raphaël Pinson 2015-08-12 16:35:47 +02:00
parent bfae7b9a45
commit 9acca33bc2

View File

@ -53,7 +53,7 @@ module GitHubChangelogGenerator
end
def detect_since_tag
if File.file?(@options[:base])
if @options[:base] && File.file?(@options[:base])
reader = GitHubChangelogGenerator::Reader.new
content = reader.read(@options[:base])
return content[0]["version"] if content