Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
jakebailey committed Jan 5, 2023
1 parent 145999c commit 0b928a5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/compiler/checker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,6 @@ import {
ImportSpecifier,
ImportTypeAssertionContainer,
ImportTypeNode,
IncompleteType,
IndexedAccessType,
IndexedAccessTypeNode,
IndexInfo,
Expand Down Expand Up @@ -25430,7 +25429,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
}

function getTypeFromFlowType(flowType: FlowType) {
return flowType.flags === 0 ? (flowType as IncompleteType).type : flowType as Type;
return flowType.flags === 0 ? flowType.type : flowType as Type;
}

function createFlowType(type: Type, incomplete: boolean): FlowType {
Expand Down

0 comments on commit 0b928a5

Please sign in to comment.