From 0097af733aea49998df61c51d0be37a6d14289ae Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Fri, 9 Apr 2021 17:59:06 +0000 Subject: [PATCH] shellcheck: bugfix releases --- shellcheck/releases.js | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/shellcheck/releases.js b/shellcheck/releases.js index a0997f6..38e9701 100644 --- a/shellcheck/releases.js +++ b/shellcheck/releases.js @@ -6,27 +6,27 @@ var repo = 'shellcheck'; module.exports = function (request) { return github(request, owner, repo).then(function (all) { - all.releases - .filter(function (rel) { - // don't include meta versions as actual versions - if ( - ['latest', 'stable'].includes(rel.version) || - 'v' !== rel.version[0] - ) { - return false; - } - return true; - }) - .forEach(function (rel) { - // if there is no os or arch or source designation, and it's a .zip, it's Windows amd64 - if ( - !/(darwin|mac|linux|x86_64|arm|src|source)/i.test(rel.name) && - /\.zip$/.test(rel.name) - ) { - rel.os = 'windows'; - rel.arch = 'amd64'; - } - }); + all.releases = all.releases.filter(function (rel) { + // don't include meta versions as actual versions + if ( + ['latest', 'stable'].includes(rel.version) || + 'v' !== rel.version[0] + ) { + return false; + } + return true; + }); + + all.releases.forEach(function (rel) { + // if there is no os or arch or source designation, and it's a .zip, it's Windows amd64 + if ( + !/(darwin|mac|linux|x86_64|arm|src|source)/i.test(rel.name) && + /\.zip$/.test(rel.name) + ) { + rel.os = 'windows'; + rel.arch = 'amd64'; + } + }); return all; }); }; -- 2.25.1