mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-10 12:25:02 +00:00
refactor(*): remove unused exception variables (#193)
This commit is contained in:
parent
38ab38645b
commit
a4a7eb41b0
29 changed files with 35 additions and 35 deletions
|
@ -13,7 +13,7 @@ export async function rehostAttachment(attachment: Attachment, targetChannel: Te
|
|||
let downloaded;
|
||||
try {
|
||||
downloaded = await downloadFile(attachment.url, 3);
|
||||
} catch (e) {
|
||||
} catch {
|
||||
return "Failed to download attachment after 3 tries";
|
||||
}
|
||||
|
||||
|
@ -23,7 +23,7 @@ export async function rehostAttachment(attachment: Attachment, targetChannel: Te
|
|||
file: await fsp.readFile(downloaded.path),
|
||||
});
|
||||
return rehostMessage.attachments[0].url;
|
||||
} catch (e) {
|
||||
} catch {
|
||||
return "Failed to rehost attachment";
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue