From 5ee37f14842852931cb987e86d63ffb679abd036 Mon Sep 17 00:00:00 2001 From: eric sciple Date: Tue, 19 Oct 2021 09:52:57 -0500 Subject: update dev dependencies and react to new linting rules (#611) --- src/git-auth-helper.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/git-auth-helper.ts') diff --git a/src/git-auth-helper.ts b/src/git-auth-helper.ts index 291d83b..af400ab 100644 --- a/src/git-auth-helper.ts +++ b/src/git-auth-helper.ts @@ -94,7 +94,7 @@ class GitAuthHelper { await fs.promises.stat(gitConfigPath) configExists = true } catch (err) { - if (err.code !== 'ENOENT') { + if ((err as any)?.code !== 'ENOENT') { throw err } } @@ -213,7 +213,7 @@ class GitAuthHelper { await fs.promises.readFile(userKnownHostsPath) ).toString() } catch (err) { - if (err.code !== 'ENOENT') { + if ((err as any)?.code !== 'ENOENT') { throw err } } @@ -302,7 +302,7 @@ class GitAuthHelper { try { await io.rmRF(keyPath) } catch (err) { - core.debug(err.message) + core.debug(`${(err as any)?.message ?? err}`) core.warning(`Failed to remove SSH key '${keyPath}'`) } } -- cgit v1.2.3