Enable no-case-declarations in codebase (#139243)

Fixes #139236

This can catch tricky programming mistakes that cause a runtime error. See 7e266b2c42 as an example of the type of bug this can prevent
This commit is contained in:
Matt Bierner
2021-12-15 17:15:35 -08:00
committed by GitHub
parent f589173345
commit e7b3724e0c
68 changed files with 233 additions and 158 deletions

View File

@@ -1196,7 +1196,7 @@ export class Repository {
break;
// Rename contains two paths, the second one is what the file is renamed/copied to.
case 'R':
case 'R': {
if (index >= entries.length) {
break;
}
@@ -1215,7 +1215,7 @@ export class Repository {
});
continue;
}
default:
// Unknown status
break entriesLoop;