Skip to content

Commit 993bbb6

Browse files
committed
Update from npm run format to fix prettier check
- missed in initial commit - took re-built dist from GH actions
1 parent bf1d57d commit 993bbb6

File tree

3 files changed

+20
-8
lines changed

3 files changed

+20
-8
lines changed

src/auth.ts

+1-3
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

+3-1
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

+16-4
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,22 @@ async function run() {
4141
constants.INPUT_CACHE_DEPENDENCY_PATH
4242
);
4343
const checkLatest = getBooleanInput(constants.INPUT_CHECK_LATEST, false);
44-
const updateToolchainsOnly = getBooleanInput(constants.INPUT_UPDATE_TOOLCHAINS_ONLY, false);
45-
const overwriteSettings = getBooleanInput(constants.INPUT_OVERWRITE_SETTINGS, !updateToolchainsOnly);
46-
const updateEnvJavaHome = getBooleanInput(constants.INPUT_UPDATE_JAVA_HOME, !updateToolchainsOnly);
47-
const addToEnvPath = getBooleanInput(constants.INPUT_ADD_TO_PATH, !updateToolchainsOnly);
44+
const updateToolchainsOnly = getBooleanInput(
45+
constants.INPUT_UPDATE_TOOLCHAINS_ONLY,
46+
false
47+
);
48+
const overwriteSettings = getBooleanInput(
49+
constants.INPUT_OVERWRITE_SETTINGS,
50+
!updateToolchainsOnly
51+
);
52+
const updateEnvJavaHome = getBooleanInput(
53+
constants.INPUT_UPDATE_JAVA_HOME,
54+
!updateToolchainsOnly
55+
);
56+
const addToEnvPath = getBooleanInput(
57+
constants.INPUT_ADD_TO_PATH,
58+
!updateToolchainsOnly
59+
);
4860

4961
let toolchainIds = core.getMultilineInput(constants.INPUT_MVN_TOOLCHAIN_ID);
5062

0 commit comments

Comments
 (0)