Skip to content

Commit db30e57

Browse files
committed
Removing unnecessary logic
1 parent 143fd5d commit db30e57

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/compiler/checker.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1561,7 +1561,6 @@ module ts {
15611561
let i = 0;
15621562
if (outerTypeParameters) {
15631563
let length = outerTypeParameters.length;
1564-
let group = 0;
15651564
while (i < length) {
15661565
// Find group of type arguments for type parameters with the same declaring container.
15671566
let start = i;
@@ -1572,16 +1571,10 @@ module ts {
15721571
// When type parameters are their own type arguments for the whole group (i.e. we have
15731572
// the default outer type arguments), we don't show the group.
15741573
if (!rangeEquals(outerTypeParameters, typeArguments, start, i)) {
1575-
if (group) {
1576-
writePunctuation(writer, SyntaxKind.DotToken);
1577-
}
15781574
writeSymbolTypeReference(parent, typeArguments, start, i);
1579-
group++;
1575+
writePunctuation(writer, SyntaxKind.DotToken);
15801576
}
15811577
}
1582-
if (group) {
1583-
writePunctuation(writer, SyntaxKind.DotToken);
1584-
}
15851578
}
15861579
writeSymbolTypeReference(type.symbol, typeArguments, i, typeArguments.length);
15871580
}

0 commit comments

Comments
 (0)