From f20f71e9fda352a1e29bd3415590968b190b24f7 Mon Sep 17 00:00:00 2001 From: softprops Date: Sun, 5 Dec 2021 23:25:22 -0500 Subject: [PATCH] fmt --- src/main.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main.ts b/src/main.ts index 1c0835e..10a47ce 100644 --- a/src/main.ts +++ b/src/main.ts @@ -3,7 +3,7 @@ import { parseConfig, isTag, unmatchedPatterns, - uploadUrl, + uploadUrl } from "./util"; import { release, upload, GitHubReleaser } from "./github"; import { Octokit } from "@octokit/action"; @@ -24,7 +24,7 @@ async function run() { } if (config.input_files) { const patterns = unmatchedPatterns(config.input_files); - patterns.forEach((pattern) => + patterns.forEach(pattern => console.warn(`🤔 Pattern '${pattern}' does not match any files.`) ); if (patterns.length > 0 && config.input_fail_on_unmatched_files) { @@ -51,8 +51,8 @@ async function run() { console.warn( `Abuse detected for request ${options.method} ${options.url}` ); - }, - }, + } + } }); //); const rel = await release(config, new GitHubReleaser(gh)); @@ -63,7 +63,7 @@ async function run() { } const currentAssets = rel.assets; const assets = await Promise.all( - files.map(async (path) => { + files.map(async path => { const json = await upload( config, gh, @@ -74,7 +74,7 @@ async function run() { delete json.uploader; return json; }) - ).catch((error) => { + ).catch(error => { throw error; }); setOutput("assets", assets);