From 5a5dbce8ed4077fdf3f2f107fab128b7866f6662 Mon Sep 17 00:00:00 2001 From: Erin Date: Sat, 1 Jul 2023 17:02:16 -0400 Subject: [PATCH] 30 lines woo --- index.mjs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/index.mjs b/index.mjs index 13dc85b..92625f1 100644 --- a/index.mjs +++ b/index.mjs @@ -9,8 +9,6 @@ const sites = fs.readFileSync('./webring.txt', 'utf-8') // exclude empty lines and lines that start with # because why not .filter(site => site && !site.startsWith('#')); -console.log(sites); - // modulo that does the right thing with negatives // https://stackoverflow.com/a/4467559 const mod = (n, m) => ((n % m) + m) % m; @@ -29,6 +27,4 @@ express() .get('/prev', (request, response) => handle(-1, request, response)) .get('/next', (request, response) => handle(+1, request, response)) .get('/list', (_, response) => response.type('txt').send(sites.join('\n'))) - .listen(process.env.PORT || 8080, () => { - console.log('doing the thing'); - }) + .listen(process.env.PORT || 8080);