Skip to content

Commit 39c87b1

Browse files
refactor code to make it more concise
1 parent 8f4c23d commit 39c87b1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/landing/src/app/test-case/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ const parseTextWithLaTeX = (input: string) => {
161161
}
162162

163163
// if no LaTeX found, return the original text as a single text part:
164-
if (parts.length === 0) {
164+
if (!parts.length) {
165165
parts.push({ type: 'text', content: input })
166166
}
167167

0 commit comments

Comments
 (0)