Skip to content

Commit 603eb86

Browse files
committed
Addressing CR feedback
1 parent 49bb2bb commit 603eb86

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/compiler/checker.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4081,7 +4081,7 @@ namespace ts {
40814081
}
40824082

40834083
function isSubtypeOfAny(candidate: Type, types: Type[]): boolean {
4084-
for (var i = 0, len = types.length; i < len; i++) {
4084+
for (let i = 0, len = types.length; i < len; i++) {
40854085
if (candidate !== types[i] && isTypeSubtypeOf(candidate, types[i])) {
40864086
return true;
40874087
}
@@ -4090,7 +4090,7 @@ namespace ts {
40904090
}
40914091

40924092
function removeSubtypes(types: Type[]) {
4093-
var i = types.length;
4093+
let i = types.length;
40944094
while (i > 0) {
40954095
i--;
40964096
if (isSubtypeOfAny(types[i], types)) {

0 commit comments

Comments
 (0)