Skip to content

Commit 1c8123d

Browse files
committed
Update from npm run format to fix prettier check
- missed in initial commit - re-built dist
1 parent d9b8bee commit 1c8123d

File tree

3 files changed

+20
-8
lines changed

3 files changed

+20
-8
lines changed

src/auth.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@ import * as constants from './constants';
1010
import * as gpg from './gpg';
1111
import {getBooleanInput} from './util';
1212

13-
export async function configureAuthentication(
14-
overwriteSettings: boolean
15-
) {
13+
export async function configureAuthentication(overwriteSettings: boolean) {
1614
const id = core.getInput(constants.INPUT_SERVER_ID);
1715
const username = core.getInput(constants.INPUT_SERVER_USERNAME);
1816
const password = core.getInput(constants.INPUT_SERVER_PASSWORD);

src/distributions/base-installer.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,9 @@ export abstract class JavaBase {
174174
if (this.updateEnvJavaHome) {
175175
core.exportVariable('JAVA_HOME', toolPath);
176176
} else {
177-
core.info(`Skip updating env.JAVA_HOME according to ${INPUT_UPDATE_JAVA_HOME}`);
177+
core.info(
178+
`Skip updating env.JAVA_HOME according to ${INPUT_UPDATE_JAVA_HOME}`
179+
);
178180
}
179181
if (this.addToEnvPath) {
180182
core.addPath(path.join(toolPath, 'bin'));

src/setup-java.ts

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,22 @@ async function run() {
3838
const jdkFile = core.getInput(constants.INPUT_JDK_FILE);
3939
const cache = core.getInput(constants.INPUT_CACHE);
4040
const checkLatest = getBooleanInput(constants.INPUT_CHECK_LATEST, false);
41-
const updateToolchainsOnly = getBooleanInput(constants.INPUT_UPDATE_TOOLCHAINS_ONLY, false);
42-
const overwriteSettings = getBooleanInput(constants.INPUT_OVERWRITE_SETTINGS, !updateToolchainsOnly);
43-
const updateEnvJavaHome = getBooleanInput(constants.INPUT_UPDATE_JAVA_HOME, !updateToolchainsOnly);
44-
const addToEnvPath = getBooleanInput(constants.INPUT_ADD_TO_PATH, !updateToolchainsOnly);
41+
const updateToolchainsOnly = getBooleanInput(
42+
constants.INPUT_UPDATE_TOOLCHAINS_ONLY,
43+
false
44+
);
45+
const overwriteSettings = getBooleanInput(
46+
constants.INPUT_OVERWRITE_SETTINGS,
47+
!updateToolchainsOnly
48+
);
49+
const updateEnvJavaHome = getBooleanInput(
50+
constants.INPUT_UPDATE_JAVA_HOME,
51+
!updateToolchainsOnly
52+
);
53+
const addToEnvPath = getBooleanInput(
54+
constants.INPUT_ADD_TO_PATH,
55+
!updateToolchainsOnly
56+
);
4557

4658
let toolchainIds = core.getMultilineInput(constants.INPUT_MVN_TOOLCHAIN_ID);
4759

0 commit comments

Comments
 (0)