From 1b80b057297377288fd20ae6f651615909d3bf6e Mon Sep 17 00:00:00 2001 From: Sorunome <mail@sorunome.de> Date: Wed, 1 Apr 2020 14:46:21 +0200 Subject: [PATCH] fix lint --- src/bot.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bot.ts b/src/bot.ts index 825f45c..19985ae 100644 --- a/src/bot.ts +++ b/src/bot.ts @@ -903,7 +903,8 @@ export class DiscordBot { // an edit await Util.AsyncForEach(msg.attachments.array(), async (attachment) => { const content = await Util.DownloadFile(attachment.url); - const fileMime = content.mimeType || mime.getType(attachment.filename) || "application/octet-stream"; + const fileMime = content.mimeType || mime.getType(attachment.filename) + || "application/octet-stream"; const mxcUrl = await this.bridge.botIntent.underlyingClient.uploadContent( content.buffer, fileMime, -- GitLab