mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-14 23:47:00 +03:00
Removed unnecessary conditionals
This commit is contained in:
@@ -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");
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user