Skip to content

Commit fb7fd42

Browse files
committed
remove useless condition
1 parent c144e5e commit fb7fd42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/checker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6204,7 +6204,7 @@ namespace ts {
62046204
&& isTypeIdenticalTo(getTypeOfSymbol(p), getTypeOfPropertyOfType(baseType, p.escapedName)!))) {
62056205
return [];
62066206
}
6207-
const flag = (modifierFlags & ModifierFlags.Async ? modifierFlags & ~ModifierFlags.Async : modifierFlags) | (isStatic ? ModifierFlags.Static : 0);
6207+
const flag = (modifierFlags & ~ModifierFlags.Async) | (isStatic ? ModifierFlags.Static : 0);
62086208
const name = getPropertyNameNodeForSymbol(p, context);
62096209
const firstPropertyLikeDecl = find(p.declarations, or(isPropertyDeclaration, isAccessor, isVariableDeclaration, isPropertySignature, isBinaryExpression, isPropertyAccessExpression));
62106210
if (p.flags & SymbolFlags.Accessor && useAccessors) {

0 commit comments

Comments
 (0)