Skip to content

Commit

Permalink
yarn flow-check-ios
Browse files Browse the repository at this point in the history
  • Loading branch information
ZihanChen-MSFT committed Nov 14, 2022
1 parent 97aa217 commit 32bc4f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -257,12 +257,7 @@ function translateTypeAnnotation(
).length > 0
) {
// no need to do further checking
return typeAliasResolution(
typeAliasResolutionStatus,
{type: 'GenericObjectTypeAnnotation'},
aliasMap,
nullable,
);
return emitObject(nullable);
} else {
const objectTypeAnnotation = {
type: 'ObjectTypeAnnotation',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -265,12 +265,7 @@ function translateTypeAnnotation(
).length > 0
) {
// no need to do further checking
return typeAliasResolution(
typeAliasResolutionStatus,
{type: 'GenericObjectTypeAnnotation'},
aliasMap,
nullable,
);
return emitObject(nullable);
} else {
const objectTypeAnnotation = {
type: 'ObjectTypeAnnotation',
Expand Down

0 comments on commit 32bc4f8

Please sign in to comment.