Skip to content

Commit

Permalink
chore: remove redundant words in comment (#5145)
Browse files Browse the repository at this point in the history
Signed-off-by: kindknow <[email protected]>
  • Loading branch information
kindknow authored Dec 30, 2024
1 parent 4adf0b9 commit 2a31c1d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions components/common/CharmEditor/components/listItem/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ export function toggleList(listType: NodeType, itemType?: NodeType, todo?: boole
let liftFrom = selection.$to.pos;

// I am not fully sure the best solution,
// but if we donot handle the the nodeSelection of itemType
// but if we donot handle the nodeSelection of itemType
// an incorrect content error in thrown by liftFollowingList.
if (selection instanceof NodeSelection && selection.node.type === listItem) {
liftFrom = selection.$from.pos + selection.node.firstChild!.content.size;
Expand Down Expand Up @@ -492,7 +492,7 @@ export function outdentList(type: NodeType): Command {
return false;
}
// if we're backspacing at the start of a list item, unindent it
// take the the range of nodes we might be lifting
// take the range of nodes we might be lifting

// the predicate is for when you're backspacing a top level list item:
// we don't want to go up past the doc node, otherwise the range
Expand Down Expand Up @@ -762,7 +762,7 @@ function joinToPreviousListItem(type?: NodeType): Command {
);
tr.replaceWith(nodeBeforePos, $from.pos + $cut.nodeAfter.nodeSize, list);
} else {
// take the text content of the paragraph and insert after the paragraph up until before the the cut
// take the text content of the paragraph and insert after the paragraph up until before the cut
tr = tr.step(
new ReplaceAroundStep(
$lastNode.pos,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ describe('computeBountyPermissions', () => {
});
});

it('should return false for all bounty operations if the the user is not a member of the space', async () => {
it('should return false for all bounty operations if the user is not a member of the space', async () => {
const { user, space } = await generateUserAndSpace({ isAdmin: true });

const { user: externalUser } = await generateUserAndSpace({ isAdmin: true });
Expand Down
6 changes: 3 additions & 3 deletions packages/charmeditor/src/extensions/listItem/toggleList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ export function toggleList(listType: NodeType, itemType?: NodeType, todo?: boole
let liftFrom = selection.$to.pos;

// I am not fully sure the best solution,
// but if we donot handle the the nodeSelection of itemType
// but if we donot handle the nodeSelection of itemType
// an incorrect content error in thrown by liftFollowingList.
if (selection instanceof NodeSelection && selection.node.type === listItem) {
liftFrom = selection.$from.pos + selection.node.firstChild!.content.size;
Expand Down Expand Up @@ -488,7 +488,7 @@ export function outdentList(type: NodeType): Command {
return false;
}
// if we're backspacing at the start of a list item, unindent it
// take the the range of nodes we might be lifting
// take the range of nodes we might be lifting

// the predicate is for when you're backspacing a top level list item:
// we don't want to go up past the doc node, otherwise the range
Expand Down Expand Up @@ -734,7 +734,7 @@ export function joinToPreviousListItem(type?: NodeType): Command {
);
tr.replaceWith(nodeBeforePos, $from.pos + $cut.nodeAfter.nodeSize, list);
} else {
// take the text content of the paragraph and insert after the paragraph up until before the the cut
// take the text content of the paragraph and insert after the paragraph up until before the cut
tr = tr.step(
new ReplaceAroundStep(
$lastNode.pos,
Expand Down

0 comments on commit 2a31c1d

Please sign in to comment.