From 5840930823f93d71282dc38c268659dd99222863 Mon Sep 17 00:00:00 2001 From: diosmosis Date: Wed, 2 Oct 2024 04:46:13 -0700 Subject: [PATCH] remove debugging code and a redundant if statement --- src/api.ts | 1 - tests/appscript/api.spec.ts | 5 ----- 2 files changed, 6 deletions(-) diff --git a/src/api.ts b/src/api.ts index 603f8a7..6d49af6 100644 --- a/src/api.ts +++ b/src/api.ts @@ -218,7 +218,6 @@ export function fetchAll(requests: MatomoRequestParams[], options: ApiFetchOptio responses = getServices().UrlFetchApp.fetchAll(urlsToFetch); } catch (e) { const errorMessage = e.message || e; - console.log(errorMessage); // throw user friendly error messages if possible if (isUrlFetchErrorQuotaLimitReachedError(errorMessage)) { diff --git a/tests/appscript/api.spec.ts b/tests/appscript/api.spec.ts index 39bd38b..021e242 100644 --- a/tests/appscript/api.spec.ts +++ b/tests/appscript/api.spec.ts @@ -399,11 +399,6 @@ describe('api', () => { return; } - if (!process.env.USE_LOCALTUNNEL) { - console.log('*** SKIPPING TEST ***'); - return; - } - server = makeApiFailureMockServer(3000); await waitForMockServer();