From fb17d0223d81992fb8d7abc7d2161c05866c26a4 Mon Sep 17 00:00:00 2001 From: Maxim Lobanov Date: Wed, 10 Mar 2021 11:21:11 +0300 Subject: [PATCH] fix minor nitpicks --- dist/cleanup/index.js | 3 +-- dist/setup/index.js | 5 ++--- src/auth.ts | 2 +- src/util.ts | 4 +--- 4 files changed, 5 insertions(+), 9 deletions(-) diff --git a/dist/cleanup/index.js b/dist/cleanup/index.js index dbcef343..d4850411 100644 --- a/dist/cleanup/index.js +++ b/dist/cleanup/index.js @@ -1535,8 +1535,7 @@ const os_1 = __importDefault(__webpack_require__(87)); const path_1 = __importDefault(__webpack_require__(622)); const tc = __importStar(__webpack_require__(533)); function getTempDir() { - let tempDirectory = process.env['RUNNER_TEMP'] || os_1.default.tmpdir(); - return tempDirectory; + return process.env['RUNNER_TEMP'] || os_1.default.tmpdir(); } exports.getTempDir = getTempDir; function getVersionFromToolcachePath(toolPath) { diff --git a/dist/setup/index.js b/dist/setup/index.js index 13013cf3..0f5ec2c5 100644 --- a/dist/setup/index.js +++ b/dist/setup/index.js @@ -12930,8 +12930,7 @@ const os_1 = __importDefault(__webpack_require__(87)); const path_1 = __importDefault(__webpack_require__(622)); const tc = __importStar(__webpack_require__(139)); function getTempDir() { - let tempDirectory = process.env['RUNNER_TEMP'] || os_1.default.tmpdir(); - return tempDirectory; + return process.env['RUNNER_TEMP'] || os_1.default.tmpdir(); } exports.getTempDir = getTempDir; function getVersionFromToolcachePath(toolPath) { @@ -13294,7 +13293,7 @@ function write(directory, settings) { return __awaiter(this, void 0, void 0, function* () { const location = path.join(directory, exports.SETTINGS_FILE); if (fs.existsSync(location)) { - core.warning(`Overwriting existing file ${location}`); + core.info(`Overwriting existing file ${location}`); } else { core.info(`Writing ${location}`); diff --git a/src/auth.ts b/src/auth.ts index c7e77f06..c7ebe0d6 100644 --- a/src/auth.ts +++ b/src/auth.ts @@ -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}`); } diff --git a/src/util.ts b/src/util.ts index d3606b2a..d1622939 100644 --- a/src/util.ts +++ b/src/util.ts @@ -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) {