mirror of
https://github.com/actions/setup-java.git
synced 2025-04-20 18:06:45 +00:00
fix minor nitpicks
This commit is contained in:
parent
e6d2942770
commit
fb17d0223d
4 changed files with 5 additions and 9 deletions
|
@ -101,7 +101,7 @@ export function generate(
|
|||
async function write(directory: string, settings: string) {
|
||||
const location = path.join(directory, SETTINGS_FILE);
|
||||
if (fs.existsSync(location)) {
|
||||
core.warning(`Overwriting existing file ${location}`);
|
||||
core.info(`Overwriting existing file ${location}`);
|
||||
} else {
|
||||
core.info(`Writing ${location}`);
|
||||
}
|
||||
|
|
|
@ -4,9 +4,7 @@ import path from 'path';
|
|||
import * as tc from '@actions/tool-cache';
|
||||
|
||||
export function getTempDir() {
|
||||
let tempDirectory = process.env['RUNNER_TEMP'] || os.tmpdir();
|
||||
|
||||
return tempDirectory;
|
||||
return process.env['RUNNER_TEMP'] || os.tmpdir();
|
||||
}
|
||||
|
||||
export function getVersionFromToolcachePath(toolPath: string) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue