Skip to content

Commit 1f9394a

Browse files
[autofix.ci] apply automated fixes
1 parent 59ed619 commit 1f9394a

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/__tests__/rehype-static-to-dynamic.test.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,17 +66,15 @@ function extractTransformedCode(tree: Root): string {
6666

6767
// Extract the code from the dynamic tab
6868
const preElement = dynamicTab.children.find(
69-
(child): child is Element =>
70-
isElement(child) && child.tagName === 'pre'
69+
(child): child is Element => isElement(child) && child.tagName === 'pre'
7170
);
7271

7372
if (!preElement) {
7473
throw new Error('Pre element not found in dynamic tab');
7574
}
7675

7776
const codeElement = preElement.children.find(
78-
(child): child is Element =>
79-
isElement(child) && child.tagName === 'code'
77+
(child): child is Element => isElement(child) && child.tagName === 'code'
8078
);
8179

8280
if (!codeElement) {

0 commit comments

Comments
 (0)