Skip to content

Commit

Permalink
chore: address @hbetts' comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin committed Nov 3, 2018
1 parent be66b35 commit 2ebe564
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ module.exports = function standardVersion (argv) {
if (!pkg && args.gitTagFallback) {
return latestSemverTag()
} else if (!pkg) {
return Promise.reject(new Error('no package file found'))
throw new Error('no package file found')
} else {
return pkg.version
}
Expand Down

0 comments on commit 2ebe564

Please sign in to comment.