diff --git a/_common/gitea.js b/_common/gitea.js index be4c247..104bed6 100644 --- a/_common/gitea.js +++ b/_common/gitea.js @@ -15,11 +15,11 @@ function getAllReleases(request, owner, repo, baseurl) { if (!baseurl) { return Promise.reject('missing baseurl'); } - return ghRelease(request, owner, repo, baseurl + '/api/v1').then(function ( - all, - ) { - return all; - }); + return ghRelease(request, owner, repo, baseurl + '/api/v1').then( + function (all) { + return all; + }, + ); } module.exports = getAllReleases; diff --git a/iterm2/releases.js b/iterm2/releases.js index 39775bc..d782b2a 100644 --- a/iterm2/releases.js +++ b/iterm2/releases.js @@ -1,20 +1,22 @@ 'use strict'; function getRawReleases(request) { - return request({ url: 'https://iterm2.com/downloads.html' }).then(function ( - resp, - ) { - var links = resp.body - .split(/[<>]+/g) - .map(function (str) { - var m = str.match(/href="(https:\/\/iterm2\.com\/downloads\/.*\.zip)"/); - if (m && /iTerm2-[34]/.test(m[1])) { - return m[1]; - } - }) - .filter(Boolean); - return links; - }); + return request({ url: 'https://iterm2.com/downloads.html' }).then( + function (resp) { + var links = resp.body + .split(/[<>]+/g) + .map(function (str) { + var m = str.match( + /href="(https:\/\/iterm2\.com\/downloads\/.*\.zip)"/, + ); + if (m && /iTerm2-[34]/.test(m[1])) { + return m[1]; + } + }) + .filter(Boolean); + return links; + }, + ); } function transformReleases(links) { diff --git a/sclient/README.md b/sclient/README.md index bcde579..d843503 100644 --- a/sclient/README.md +++ b/sclient/README.md @@ -28,7 +28,7 @@ curl -H "Host: example.com" http://localhost:3000 ``` ```html - +