Test if @options[:base] is set
This commit is contained in:
parent
bfae7b9a45
commit
9acca33bc2
|
@ -53,7 +53,7 @@ module GitHubChangelogGenerator
|
||||||
end
|
end
|
||||||
|
|
||||||
def detect_since_tag
|
def detect_since_tag
|
||||||
if File.file?(@options[:base])
|
if @options[:base] && File.file?(@options[:base])
|
||||||
reader = GitHubChangelogGenerator::Reader.new
|
reader = GitHubChangelogGenerator::Reader.new
|
||||||
content = reader.read(@options[:base])
|
content = reader.read(@options[:base])
|
||||||
return content[0]["version"] if content
|
return content[0]["version"] if content
|
||||||
|
|
Loading…
Reference in New Issue
Block a user