From f1a5bd1222bf82dc51fc9a8a84e6de946a37f01f Mon Sep 17 00:00:00 2001 From: Fernandez Ludovic Date: Mon, 12 Jun 2023 09:36:17 +0200 Subject: [PATCH] review: format and regenerate --- dist/post_run/index.js | 6 +++--- dist/run/index.js | 6 +++--- src/run.ts | 14 +++++++------- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/dist/post_run/index.js b/dist/post_run/index.js index 5a336f1..f55778c 100644 --- a/dist/post_run/index.js +++ b/dist/post_run/index.js @@ -66581,12 +66581,12 @@ function runLint(lintPath, patchPath) { .filter((arg) => arg.startsWith(`-`)) .map((arg) => arg.replace(/^-+/, ``)) .map((arg) => arg.split(/=(.*)/, 2)) - .map(([key, value]) => [key, value !== null && value !== void 0 ? value : '']); + .map(([key, value]) => [key, value !== null && value !== void 0 ? value : ""]); const userArgsMap = new Map(userArgsList); const userArgNames = new Set(userArgsList.map(([key, value]) => key)); - const formats = userArgsMap.get('out-format'); + const formats = userArgsMap.get("out-format"); if (formats) { - if (formats.includes('github-actions')) { + if (formats.includes("github-actions")) { addedArgs.push(`--out-format=${formats}`); } else { diff --git a/dist/run/index.js b/dist/run/index.js index 518cb5f..1a60770 100644 --- a/dist/run/index.js +++ b/dist/run/index.js @@ -66581,12 +66581,12 @@ function runLint(lintPath, patchPath) { .filter((arg) => arg.startsWith(`-`)) .map((arg) => arg.replace(/^-+/, ``)) .map((arg) => arg.split(/=(.*)/, 2)) - .map(([key, value]) => [key, value !== null && value !== void 0 ? value : '']); + .map(([key, value]) => [key, value !== null && value !== void 0 ? value : ""]); const userArgsMap = new Map(userArgsList); const userArgNames = new Set(userArgsList.map(([key, value]) => key)); - const formats = userArgsMap.get('out-format'); + const formats = userArgsMap.get("out-format"); if (formats) { - if (formats.includes('github-actions')) { + if (formats.includes("github-actions")) { addedArgs.push(`--out-format=${formats}`); } else { diff --git a/src/run.ts b/src/run.ts index 0c7e9a3..a225665 100644 --- a/src/run.ts +++ b/src/run.ts @@ -125,15 +125,15 @@ async function runLint(lintPath: string, patchPath: string): Promise { .filter((arg) => arg.startsWith(`-`)) .map((arg) => arg.replace(/^-+/, ``)) .map((arg) => arg.split(/=(.*)/, 2)) - .map<[string, string]>(([key, value]) => [key, value ?? '']) - - const userArgsMap = new Map(userArgsList) - const userArgNames = new Set(userArgsList.map(([key, value]) => key)); + .map<[string, string]>(([key, value]) => [key, value ?? ""]) - const formats = userArgsMap.get('out-format') + const userArgsMap = new Map(userArgsList) + const userArgNames = new Set(userArgsList.map(([key, value]) => key)) + + const formats = userArgsMap.get("out-format") if (formats) { - if (formats.includes('github-actions')) { - addedArgs.push(`--out-format=${formats}`); + if (formats.includes("github-actions")) { + addedArgs.push(`--out-format=${formats}`) } else { addedArgs.push(`--out-format=github-actions,${formats}`) }