Skip to content

Commit 2a31c1d

Browse files
authored
chore: remove redundant words in comment (#5145)
Signed-off-by: kindknow <[email protected]>
1 parent 4adf0b9 commit 2a31c1d

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

components/common/CharmEditor/components/listItem/commands.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ export function toggleList(listType: NodeType, itemType?: NodeType, todo?: boole
176176
let liftFrom = selection.$to.pos;
177177

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

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

lib/permissions/bounties/__tests__/computeBountyPermissions.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ describe('computeBountyPermissions', () => {
275275
});
276276
});
277277

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

281281
const { user: externalUser } = await generateUserAndSpace({ isAdmin: true });

packages/charmeditor/src/extensions/listItem/toggleList.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ export function toggleList(listType: NodeType, itemType?: NodeType, todo?: boole
169169
let liftFrom = selection.$to.pos;
170170

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

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

0 commit comments

Comments
 (0)