Skip to content

Commit f0ffd99

Browse files
committed
fix issues found by coderabbit ai.
1 parent a44676a commit f0ffd99

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/cli/translate.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -553,9 +553,11 @@ export const translateCommand = new Command('translate')
553553
additionalPrompts: sourceFrontmatter.i18n?.additionalPrompts,
554554
})
555555

556-
const newFrontmatter = { ...sourceFrontmatter, sourceSHA }
557-
delete newFrontmatter.i18n
558-
newFrontmatter.sourceSHA = sourceSHA
556+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
557+
const { i18n: _, ...newFrontmatter } = {
558+
...sourceFrontmatter,
559+
sourceSHA,
560+
}
559561

560562
const { data, content } = matter(targetContent)
561563
const typedData = data as I18nFrontmatter

0 commit comments

Comments
 (0)