Skip to content

Commit 6fddff7

Browse files
committed
just use if here
1 parent ec8f944 commit 6fddff7

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/translator/fixer.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -271,17 +271,19 @@ function fixMultipleVerb(
271271
case "modal":
272272
throw new FilteredError("modal verb after another verb");
273273
case "non-modal":
274-
return verb.verb.presentSingular === "is"
275-
? {
274+
if (verb.verb.presentSingular === "is") {
275+
return {
276276
...verb,
277277
verb: {
278278
...verb.verb,
279279
presentPlural: "be",
280280
presentSingular: "be",
281281
past: "been",
282282
},
283-
}
284-
: verb;
283+
};
284+
} else {
285+
return verb;
286+
}
285287
}
286288
}),
287289
];

0 commit comments

Comments
 (0)