From 7e64d484ba7fbb1014226c70a9b334af83573c67 Mon Sep 17 00:00:00 2001 From: yufernando Date: Thu, 9 Sep 2021 18:26:28 -0400 Subject: [PATCH] Fix readfile bug Set error type to any in catch clause. --- src/gitter/inject-refs.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gitter/inject-refs.ts b/src/gitter/inject-refs.ts index 5f72314..329b597 100644 --- a/src/gitter/inject-refs.ts +++ b/src/gitter/inject-refs.ts @@ -26,7 +26,7 @@ async function findRefsInFolder(repoPath: string): Promise { let content: string; try { content = await fs.readFile(join(gitDir, f), 'utf-8'); - } catch (err) { + } catch (err: any) { if (err.code === 'ENOENT') { content = ''; } else {