diff --git a/src/routes/getTotalStats.ts b/src/routes/getTotalStats.ts index 49699c0..c0fb7bf 100644 --- a/src/routes/getTotalStats.ts +++ b/src/routes/getTotalStats.ts @@ -34,6 +34,7 @@ export async function getTotalStats(req: Request, res: Response): Promise const row = await getStats(countContributingUsers); lastFetch = row; + /* istanbul ignore if */ if (!row) res.sendStatus(500); const extensionUsers = chromeUsersCache + firefoxUsersCache; @@ -68,6 +69,7 @@ function getStats(countContributingUsers: boolean): Promise { } function updateExtensionUsers() { + /* istanbul ignore else */ if (config.userCounterURL) { axios.get(`${config.userCounterURL}/api/v1/userCount`) .then(res => apiUsersCache = Math.max(apiUsersCache, res.data.userCount))