diff --git a/server.js b/server.js index a9f449c..56f5364 100644 --- a/server.js +++ b/server.js @@ -33,11 +33,10 @@ app.get('/', function (req, res) { }) app.get('/:owner/:repo', async function (req, res) { - let repo = await ( - await fetch( - `https://git.gay/api/v1/repos/${req.params.owner}/${req.params.repo}` - ) - ).json() + const repoResp = await fetch( + `https://git.gay/api/v1/repos/${req.params.owner}/${req.params.repo}` + ) + const repo = await repoResp.json() let infoHtml = `
${escape( repo.owner.full_name @@ -52,7 +51,7 @@ app.get('/:owner/:repo', async function (req, res) { repo.description )}
` - let img = await html2png( + const img = await html2png( `