Skip to content

Commit f43e9f5

Browse files
committed
small improvement
1 parent 528e3c2 commit f43e9f5

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/translator/phrase.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -91,15 +91,12 @@ function nounPhrase(
9191
if (nounPreposition == null) {
9292
return headNoun;
9393
} else if (modifier.ofPhrase == null) {
94-
const { noun: nounOf } = nounPreposition;
94+
const { noun: nounOf, preposition } = nounPreposition;
9595
switch (nounOf.type) {
9696
case "simple":
9797
return headNoun.map((noun): English.NounPhrase => ({
9898
...nounOf,
99-
prepositions: [nounAsPreposition(
100-
noun,
101-
nounPreposition.preposition,
102-
)],
99+
prepositions: [nounAsPreposition(noun, preposition)],
103100
emphasis,
104101
}));
105102
case "compound":

0 commit comments

Comments
 (0)