Skip to content

Commit

Permalink
chore: remove repetitive words (#2019)
Browse files Browse the repository at this point in the history
Signed-off-by: pengqiseven <912170095@qq.com>
  • Loading branch information
pengqiseven authored Mar 9, 2024
1 parent 2eecefb commit 7ae4529
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@ fn handle_jump<'cfg>(
block: BlockId,
finally_fallthrough: bool,
) {
// If this jump is exiting a finally clause and and this path is visiting
// If this jump is exiting a finally clause and this path is visiting
// an exception handlers chain
if finally_fallthrough && path.exception_handlers.is_some() {
// Jump towards the corresponding block if there are pending exception
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -765,7 +765,7 @@ fn arguments_grouped_layout(
}
}

/// Checks if the the first argument requires grouping
/// Checks if the first argument requires grouping
fn should_group_first_argument(
list: &JsCallArgumentList,
comments: &JsComments,
Expand Down
2 changes: 1 addition & 1 deletion crates/biome_js_formatter/src/utils/assignment_like.rs
Original file line number Diff line number Diff line change
Expand Up @@ -891,7 +891,7 @@ impl AnyJsAssignmentLike {
Ok(is_complex_destructuring || has_complex_type_annotation || is_complex_type_alias)
}

/// Checks if the the current assignment is eligible for [AssignmentLikeLayout::BreakAfterOperator]
/// Checks if the current assignment is eligible for [AssignmentLikeLayout::BreakAfterOperator]
///
/// This function is small wrapper around [should_break_after_operator] because it has to work
/// for nodes that belong to TypeScript too.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ fn should_flatten(parent_operator: BinaryLikeOperator, operator: BinaryLikeOpera
}
}

/// There are cases where the parent decides to inline the the element; in
/// There are cases where the parent decides to inline the element; in
/// these cases the decide to actually break on a new line and indent it.
///
/// This function checks what the parents adheres to this behaviour
Expand Down
2 changes: 1 addition & 1 deletion crates/biome_parser/src/parse_lists.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ pub trait ParseSeparatedList {
false
}

/// Method called at each iteration of the the loop and checks if the expected
/// Method called at each iteration of the loop and checks if the expected
/// separator is present.
///
/// If present, it [parses](Self::separating_element_kind) it and continues with loop.
Expand Down

0 comments on commit 7ae4529

Please sign in to comment.