Skip to content

Commit

Permalink
fix(changelog): add defaults to catch errors properly
Browse files Browse the repository at this point in the history
  • Loading branch information
Haroenv authored Jan 22, 2018
1 parent a46d6c5 commit 91e6ebd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/changelog.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function getChangelog({ repository }) {
return { changelogFilename: null };
}

const { user, project, host } = repository;
const { user = '', project = '', host = '' } = repository;
if (user.length < 1 || project.length < 1) {
return { changelogFilename: null };
}
Expand Down

0 comments on commit 91e6ebd

Please sign in to comment.