Skip to content

Commit

Permalink
Fix bug when no existing tags
Browse files Browse the repository at this point in the history
Fixes #170
  • Loading branch information
cookpete committed Jul 3, 2020
1 parent cc1ef37 commit 4da5a9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/releases.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function parseReleases (tags, remote, latestVersion, options, onParsed) {
})
if (latestVersion || options.unreleased || options.unreleasedOnly) {
const tag = latestVersion || null
const previousTag = tags[0].tag
const previousTag = tags[0] ? tags[0].tag : null
const date = new Date().toISOString()
const diff = `${previousTag}..`
const unreleased = createRelease(tag, previousTag, date, diff, remote, options, onParsed)
Expand Down

0 comments on commit 4da5a9c

Please sign in to comment.