Skip to content

Commit 7e36086

Browse files
author
Bryan Clark
committed
Pass undefined when empty
1 parent 0e5545e commit 7e36086

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

dist/index.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/setup-java.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ async function run() {
1818
const matchersPath = path.join(__dirname, '..', '.github');
1919
console.log(`##[add-matcher]${path.join(matchersPath, 'java.json')}`);
2020

21-
const id = core.getInput('server-id', {required: false});
22-
const username = core.getInput('server-username', {required: false});
23-
const password = core.getInput('server-password', {required: false});
21+
const id = core.getInput('server-id', {required: false}) || undefined;
22+
const username = core.getInput('server-username', {required: false}) || undefined;
23+
const password = core.getInput('server-password', {required: false}) || undefined;
2424

2525
await auth.configAuthentication(id, username, password);
2626
} catch (error) {

0 commit comments

Comments
 (0)