Read-only mirror — the public repositories of the Forgejo instance, refreshed every 10 minutes. The live instance (fg.dieschoenewolke.de) is reachable only over the VPN; clone here with https://git.dieschoenewolke.de/git/<owner>/<repo>.git.
summaryrefslogtreecommitdiff
path: root/src/git-auth-helper.ts
diff options
context:
space:
mode:
authoreric sciple <ericsciple@users.noreply.github.com>2021-10-19 09:52:57 -0500
committerGitHub <noreply@github.com>2021-10-19 09:52:57 -0500
commit5ee37f14842852931cb987e86d63ffb679abd036 (patch)
tree62fac9cbba0ad2cb177776904836eb5b2e88076c /src/git-auth-helper.ts
parent6a88a892fe72e01ab1409fe94c4d26e71b939c94 (diff)
update dev dependencies and react to new linting rules (#611)
Diffstat (limited to 'src/git-auth-helper.ts')
-rw-r--r--src/git-auth-helper.ts6
1 files changed, 3 insertions, 3 deletions
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}'`)
}
}