From f1273742926d8f9a2f2d359da10259872d8e5352 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Sat, 2 May 2020 19:53:37 +0000 Subject: [PATCH 1/1] make Prettier --- _common/github.js | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/_common/github.js b/_common/github.js index 09eda59..cc542f0 100644 --- a/_common/github.js +++ b/_common/github.js @@ -65,14 +65,16 @@ function getAllReleases(request, owner = 'BurntSushi', repo = 'ripgrep') { } const name = asset['name']; - const os = Object.keys(osMap).find(regKey => { - name.match(osMap[regKey]); - }) || 'linux'; - const arch = Object.keys(archMap) - .find(regKey => name.match(archMap[regKey])); + const os = + Object.keys(osMap).find((regKey) => { + name.match(osMap[regKey]); + }) || 'linux'; + const arch = Object.keys(archMap).find((regKey) => + name.match(archMap[regKey]) + ); let fileExt = ''; - Object.keys(fileExtMap).find(regKey => { + Object.keys(fileExtMap).find((regKey) => { const match = name.match(fileExtMap[regKey]); if (match) { fileExt = match[0]; @@ -100,7 +102,9 @@ function getAllReleases(request, owner = 'BurntSushi', repo = 'ripgrep') { module.exports = getAllReleases; if (module === require.main) { - getAllReleases(require('@root/request'), 'BurntSushi', 'ripgrep').then(function(all) { - console.log(JSON.stringify(all, null, 2)); - }); + getAllReleases(require('@root/request'), 'BurntSushi', 'ripgrep').then( + function (all) { + console.log(JSON.stringify(all, null, 2)); + } + ); } -- 2.25.1