From 1d50b0104bfcf310892d46d046b255cc2a924cbf Mon Sep 17 00:00:00 2001 From: Andy Edwards Date: Tue, 21 May 2019 23:37:38 -0500 Subject: [PATCH 1/2] fix(circle): always prompt for CircleCI API token --- src/lib/circle.js | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/lib/circle.js b/src/lib/circle.js index 6717072..bbe3567 100644 --- a/src/lib/circle.js +++ b/src/lib/circle.js @@ -44,16 +44,6 @@ function getUserInput(info) { const clipboardValue = await clipboard.read(); return clipboardValue.length === 40 ? clipboardValue : null; }, - when: () => { - try { - return info.options['ask-for-passwords']; - } catch (error) { - info.log.error( - 'Something went wrong with your stored api token. Delete them from your keychain and try again' - ); - process.exit(1); // eslint-disable-line unicorn/no-process-exit - } - }, }, { type: 'confirm', From b12d7cfd5d06625c720c75b3c113a314796fab9b Mon Sep 17 00:00:00 2001 From: Andy Edwards Date: Wed, 22 May 2019 00:07:59 -0500 Subject: [PATCH 2/2] fix: eslint error --- src/lib/circle.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/circle.js b/src/lib/circle.js index bbe3567..be019a4 100644 --- a/src/lib/circle.js +++ b/src/lib/circle.js @@ -33,7 +33,7 @@ const circleConfig = { }, }; -function getUserInput(info) { +function getUserInput(/* info */) { return inquirer.prompt([ { type: 'input',