mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-11 10:00:13 -06:00
Addressing CR feedback
This commit is contained in:
parent
49bb2bbc15
commit
603eb86302
@ -4081,7 +4081,7 @@ namespace ts {
|
||||
}
|
||||
|
||||
function isSubtypeOfAny(candidate: Type, types: Type[]): boolean {
|
||||
for (var i = 0, len = types.length; i < len; i++) {
|
||||
for (let i = 0, len = types.length; i < len; i++) {
|
||||
if (candidate !== types[i] && isTypeSubtypeOf(candidate, types[i])) {
|
||||
return true;
|
||||
}
|
||||
@ -4090,7 +4090,7 @@ namespace ts {
|
||||
}
|
||||
|
||||
function removeSubtypes(types: Type[]) {
|
||||
var i = types.length;
|
||||
let i = types.length;
|
||||
while (i > 0) {
|
||||
i--;
|
||||
if (isSubtypeOfAny(types[i], types)) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user