mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 18:49:00 +01:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user