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