Skip to content

Commit 5ed0653

Browse files
committed
Remove unnecessary parentheses
1 parent c071b39 commit 5ed0653

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/compiler/checker.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6214,7 +6214,7 @@ namespace ts {
62146214
if (source.symbol.name !== target.symbol.name ||
62156215
!(source.symbol.flags & SymbolFlags.RegularEnum) || !(target.symbol.flags & SymbolFlags.RegularEnum) ||
62166216
(source.flags & TypeFlags.Union) !== (target.flags & TypeFlags.Union)) {
6217-
return (enumRelation[id] = false);
6217+
return enumRelation[id] = false;
62186218
}
62196219
const targetEnumType = getTypeOfSymbol(target.symbol);
62206220
for (const property of getPropertiesOfType(getTypeOfSymbol(source.symbol))) {
@@ -6225,11 +6225,11 @@ namespace ts {
62256225
errorReporter(Diagnostics.Property_0_is_missing_in_type_1, property.name,
62266226
typeToString(target, /*enclosingDeclaration*/ undefined, TypeFormatFlags.UseFullyQualifiedType));
62276227
}
6228-
return (enumRelation[id] = false);
6228+
return enumRelation[id] = false;
62296229
}
62306230
}
62316231
}
6232-
return (enumRelation[id] = true);
6232+
return enumRelation[id] = true;
62336233
}
62346234

62356235
function isSimpleTypeRelatedTo(source: Type, target: Type, relation: Map<RelationComparisonResult>, errorReporter?: ErrorReporter) {

0 commit comments

Comments
 (0)