update dev dependencies and react to new linting rules (#611)

This commit is contained in:
eric sciple 2021-10-19 09:52:57 -05:00 committed by GitHub
parent c49af7ca1f
commit eb8a193c1d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 14807 additions and 4534 deletions

View file

@ -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}'`)
}
}