update dev dependencies and react to new linting rules

This commit is contained in:
eric sciple 2021-10-18 16:34:26 -05:00
parent 1e204e9a92
commit 7b32c07aeb
13 changed files with 14797 additions and 4526 deletions

View file

@ -92,7 +92,10 @@ export async function getDefaultBranch(
assert.ok(result, 'default_branch cannot be empty')
} catch (err) {
// Handle .wiki repo
if (err['status'] === 404 && repo.toUpperCase().endsWith('.WIKI')) {
if (
(err as any)?.status === 404 &&
repo.toUpperCase().endsWith('.WIKI')
) {
result = 'master'
}
// Otherwise error