Test if @options[:base] is set
This commit is contained in:
parent
bfae7b9a45
commit
9acca33bc2
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user