Skip to content

Commit cf54cc5

Browse files
committed
fix: format forEachType callback as single line to pass dprint check
1 parent 46bb322 commit cf54cc5

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/compiler/checker.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23112,9 +23112,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
2311223112
for (const constituent of (target as UnionType).types) {
2311323113
const constituentPropType = getTypeOfPropertyOfType(constituent, prop.escapedName);
2311423114
if (constituentPropType) {
23115-
forEachType(constituentPropType, t => {
23116-
targetDiscriminantTypes.push(t);
23117-
});
23115+
forEachType(constituentPropType, t => targetDiscriminantTypes.push(t));
2311823116
}
2311923117
}
2312023118
const targetDiscriminantUnion = getUnionType(targetDiscriminantTypes);

0 commit comments

Comments
 (0)