From 96ccbbe4a2182f50671978c8ba8347e612024ab8 Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Sun, 23 May 2021 11:35:02 -0400 Subject: [PATCH] Removed unnecessary conditionals --- src/routes/postSkipSegments.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/routes/postSkipSegments.ts b/src/routes/postSkipSegments.ts index c7225d8..f131e47 100644 --- a/src/routes/postSkipSegments.ts +++ b/src/routes/postSkipSegments.ts @@ -290,14 +290,10 @@ function proxySubmission(req: Request) { body: req.body, }) .then(async res => { - if (config.mode === 'development') { - Logger.debug('Proxy Submission: ' + res.status + ' (' + (await res.text()) + ')'); - } + Logger.debug('Proxy Submission: ' + res.status + ' (' + (await res.text()) + ')'); }) .catch(err => { - if (config.mode === 'development') { - Logger.error("Proxy Submission: Failed to make call"); - } + Logger.error("Proxy Submission: Failed to make call"); }); }