From 8d05795dd644aebe16d5e4e55d6e3b674448eddc Mon Sep 17 00:00:00 2001 From: "Thomas A. Christensen II" <25492070+MillironX@users.noreply.github.com> Date: Wed, 15 Jun 2022 11:28:51 -0500 Subject: [PATCH] Remove all implicit variable declarations --- index.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/index.ts b/index.ts index ad8dfa1..e1b9b58 100644 --- a/index.ts +++ b/index.ts @@ -24,7 +24,7 @@ async function latest_stable_release_data(ok) { async function release_data(version, ok) { // Setup tag-based filtering - filter = (r) => { + let filter = (r) => { return semver.satisfies(r.tag_name, version, true); }; @@ -43,7 +43,7 @@ async function release_data(version, ok) { } else { // This is special: passing 'latest' or 'latest-stable' allows us to use // the latest stable GitHub release direct from the API - stable_release = await latest_stable_release_data(ok); + const stable_release = await latest_stable_release_data(ok); return stable_release; } } @@ -51,7 +51,7 @@ async function release_data(version, ok) { // Get all the releases const all_releases = await all_nf_releases(ok); - matching_releases = all_releases.filter(filter); + let matching_releases = all_releases.filter(filter); matching_releases.sort(function (x, y) { semver.compare(x.tag_name, y.tag_name, true); @@ -115,7 +115,7 @@ async function run() { } // Get the release info for the desired release - let release = {}; + let release: any = {}; try { release = await release_data(version, octokit); resolved_version = release.tag_name;