Skip to content

Commit 84e319e

Browse files
committed
Minor style cleanup
1 parent 9e1b530 commit 84e319e

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
@@ -3157,7 +3157,7 @@ namespace ts {
31573157
// Return the type implied by an object binding pattern
31583158
function getTypeFromObjectBindingPattern(pattern: ObjectBindingPattern, includePatternInType: boolean, reportErrors: boolean): ResolvedType {
31593159
const members = createMap<Symbol>();
3160-
let hasComputedProperties: boolean;
3160+
let hasComputedProperties = false;
31613161
forEach(pattern.elements, e => {
31623162
const name = e.propertyName || <Identifier>e.name;
31633163
if (isComputedNonLiteralName(name)) {
@@ -10274,7 +10274,7 @@ namespace ts {
1027410274
const contextualTypeHasPattern = contextualType && contextualType.pattern &&
1027510275
(contextualType.pattern.kind === SyntaxKind.ObjectBindingPattern || contextualType.pattern.kind === SyntaxKind.ObjectLiteralExpression);
1027610276
let typeFlags: TypeFlags = 0;
10277-
let patternWithComputedProperties: boolean | undefined;
10277+
let patternWithComputedProperties = false;
1027810278
let hasComputedStringProperty = false;
1027910279
let hasComputedNumberProperty = false;
1028010280

0 commit comments

Comments
 (0)