Put constant in outer scope

This commit is contained in:
Stefan Ollinger 2023-10-05 17:05:31 +02:00
parent da9a6c434a
commit ae2f170fe6

View File

@ -123,9 +123,9 @@ const runSingleRequest = async function (
}
let response, responseTime;
const start = Date.now();
try {
// run request
const start = Date.now();
response = await axios(request);
responseTime = Date.now() - start;
} catch (err) {