Skip to content

Commit ff59822

Browse files
committed
simplify comparison
1 parent ed067ae commit ff59822

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/translator/composer.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,11 @@ function complement(complement: English.Complement) {
7373
}
7474
function adverbVerb(verbAdverb: English.AdverbVerb) {
7575
const { preAdverb, verb, postAdverb } = verbAdverb;
76-
const verbPost =
77-
verb.word === "can" && postAdverb != null && postAdverb.negative &&
76+
const verbPost = verb.word === "can" && postAdverb != null &&
7877
postAdverb.adverb.word === "not"
79-
? `${word(verb)}${word(postAdverb.adverb)}`
80-
: [verb, ...nullableAsArray(postAdverb).map(({ adverb }) => adverb)].map(
81-
word,
82-
).join(" ");
78+
? `${word(verb)}${word(postAdverb.adverb)}`
79+
: [verb, ...nullableAsArray(postAdverb).map(({ adverb }) => adverb)]
80+
.map(word).join(" ");
8381
return [
8482
...preAdverb.map(({ adverb }) => word(adverb)),
8583
verbPost,

0 commit comments

Comments
 (0)