From 2ebe5646101e0b4980a2c9205cef0b250898cd6c Mon Sep 17 00:00:00 2001 From: Benjamin Date: Sat, 3 Nov 2018 16:02:00 -0700 Subject: [PATCH] chore: address @hbetts' comments --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 880a31046..d8432b03c 100755 --- a/index.js +++ b/index.js @@ -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 }