Skip to content

Commit f852696

Browse files
committed
Just assign true inside an if where a boolean was just checked
1 parent 45af47a commit f852696

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/compiler/checker.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3179,7 +3179,7 @@ namespace ts {
31793179
result.pattern = pattern;
31803180
}
31813181
if (hasComputedProperties) {
3182-
result.isObjectLiteralPatternWithComputedProperties = hasComputedProperties;
3182+
result.isObjectLiteralPatternWithComputedProperties = true;
31833183
}
31843184
return result;
31853185
}
@@ -10378,7 +10378,7 @@ namespace ts {
1037810378
const freshObjectLiteralFlag = compilerOptions.suppressExcessPropertyErrors ? 0 : TypeFlags.FreshLiteral;
1037910379
result.flags |= TypeFlags.ObjectLiteral | TypeFlags.ContainsObjectLiteral | freshObjectLiteralFlag | (typeFlags & TypeFlags.PropagatingFlags);
1038010380
if (patternWithComputedProperties) {
10381-
result.isObjectLiteralPatternWithComputedProperties = patternWithComputedProperties;
10381+
result.isObjectLiteralPatternWithComputedProperties = true;
1038210382
}
1038310383
if (inDestructuringPattern) {
1038410384
result.pattern = node;

0 commit comments

Comments
 (0)