From 5a1cf205a720caad84a1a91c8e99954856b7947e Mon Sep 17 00:00:00 2001 From: Dragory <2606411+Dragory@users.noreply.github.com> Date: Mon, 5 Aug 2019 01:40:27 +0300 Subject: [PATCH] utils: safety checks to resolveUser; ignore a tslint error --- src/utils.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/utils.ts b/src/utils.ts index aca89a6e..33fb6af3 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -404,7 +404,7 @@ export function downloadFile(attachmentUrl: string, retries = 3): Promise<{ path if (retries === 0) { throw httpsErr; } else { - console.warn("File download failed, retrying. Error given:", httpsErr.message); + console.warn("File download failed, retrying. Error given:", httpsErr.message); // tslint:disable-line resolve(downloadFile(attachmentUrl, retries - 1)); } }); @@ -650,6 +650,10 @@ export async function resolveUser(bot: Client, value: string): Promise