mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-14 15:37:07 +03:00
Removed unnecessary conditionals
This commit is contained in:
@@ -290,14 +290,10 @@ function proxySubmission(req: Request) {
|
|||||||
body: req.body,
|
body: req.body,
|
||||||
})
|
})
|
||||||
.then(async res => {
|
.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 => {
|
.catch(err => {
|
||||||
if (config.mode === 'development') {
|
Logger.error("Proxy Submission: Failed to make call");
|
||||||
Logger.error("Proxy Submission: Failed to make call");
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user