Skip to content

Commit 33a7a73

Browse files
committed
more code reuse
1 parent a904eae commit 33a7a73

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

src/translator/determiner.ts

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,10 @@ export function findNumber(
3737
} else if (check(quantities, "plural", "singular")) {
3838
return "plural";
3939
} else {
40-
const singular = prettyPrintDeterminers(
41-
filterQuantity(determiners, "singular"),
42-
);
43-
const plural = prettyPrintDeterminers(
44-
filterQuantity(determiners, "plural"),
45-
);
40+
const singular = filterQuantity(determiners, "singular");
41+
const plural = filterQuantity(determiners, "plural");
4642
throw new FilteredError(
47-
`determiner for singular nouns ${singular} with determiner for plural nouns ${plural}`,
43+
encodeDeterminer`determiner for singular nouns ${singular} with determiner for plural nouns ${plural}`(),
4844
);
4945
}
5046
}

0 commit comments

Comments
 (0)