refactor(inputs): remove redundant defaults and options

This commit is contained in:
cycjimmy 2019-10-26 22:40:30 +08:00
parent fd6487c160
commit 18455e9e99
4 changed files with 18 additions and 17 deletions

View file

@ -6,7 +6,7 @@ const inputs = require('./inputs.json');
* @returns {{}|{dryRun: boolean}}
*/
exports.handleDryRunOption = () => {
const dryRun = core.getInput(inputs.dry_run, {required: false}) || '';
const dryRun = core.getInput(inputs.dry_run);
switch (dryRun) {
case 'true':