Skip to content

Commit f04b8ce

Browse files
YousefEDclaude
andcommitted
chore: address review feedback (const, unused import)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent eb6502a commit f04b8ce

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

packages/core/src/api/blockManipulation/commands/nestBlock/nestBlock.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { describe, expect, it } from "vitest";
22

33
import { BlockNoteEditor } from "../../../../editor/BlockNoteEditor.js";
44
import { PartialBlock } from "../../../../blocks/defaultBlocks.js";
5-
import { afterAll, beforeAll, beforeEach } from "vitest";
5+
import { afterAll, beforeAll } from "vitest";
66

77
/**
88
* Custom test setup with a document designed to reproduce nesting/unnesting bugs.

packages/core/src/api/blockManipulation/commands/nestBlock/nestBlock.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ function liftToOuterList(
9595
groupType: NodeType, // change 3
9696
range: NodeRange,
9797
) {
98-
let end = range.end;
98+
const end = range.end;
9999
const endOfList = range.$to.end(range.depth);
100100

101101
if (end < endOfList) {

0 commit comments

Comments
 (0)