Skip to content

Commit

Permalink
Fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ahejlsberg committed Nov 15, 2020
1 parent 87d8b5b commit 77722bb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/compiler/checker.ts
Expand Up @@ -18173,7 +18173,6 @@ namespace ts {
return Ternary.False;
}
result &= related;

}
return result;
}
Expand Down Expand Up @@ -31928,8 +31927,7 @@ namespace ts {
let seenOptionalElement = false;
let seenRestElement = false;
const hasNamedElement = some(elementTypes, isNamedTupleMember);
for (let i = 0; i < elementTypes.length; i++) {
const e = elementTypes[i];
for (const e of elementTypes) {
if (e.kind !== SyntaxKind.NamedTupleMember && hasNamedElement) {
grammarErrorOnNode(e, Diagnostics.Tuple_members_must_all_have_names_or_all_not_have_names);
break;
Expand Down

0 comments on commit 77722bb

Please sign in to comment.