services: clean up functions and improve readability

This commit is contained in:
wukko
2024-05-16 21:28:42 +06:00
parent 9eed3b5b67
commit c6f1184e55
12 changed files with 78 additions and 46 deletions

View File

@@ -57,7 +57,7 @@ export default async function(o) {
try {
info = await yt.getBasicInfo(o.id, 'WEB');
} catch (e) {
} catch {
return { error: 'ErrorCantConnectToServiceAPI' };
}