From 07f73c750f2659df57aaba169971e69b69291902 Mon Sep 17 00:00:00 2001 From: Jamie Visker Date: Wed, 1 Nov 2023 14:46:05 -0600 Subject: [PATCH] lint --- src/app.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/app.js b/src/app.js index 31bfc11a..5c473c72 100644 --- a/src/app.js +++ b/src/app.js @@ -35,13 +35,14 @@ app.get('/', async (req, res) => { res.status(500).send('Error reading table or S3') } }) -function mySlowFunction(baseNumber) { - console.time('mySlowFunction'); - let result = 0; +function mySlowFunction (baseNumber) { + console.time('mySlowFunction') + let result = 0 for (let i = Math.pow(baseNumber, 7); i >= 0; i--) { - result += Math.atan(i) * Math.tan(i); + result += Math.atan(i) * Math.tan(i) } - console.timeEnd('mySlowFunction'); + console.timeEnd('mySlowFunction') + return result } app.get('/cpu/:complexity', async (req, res) => { try {