Skip to content

Commit

Permalink
run cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
taearls committed Jan 28, 2025
1 parent 30d1e2e commit f04acd3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/oxc_linter/src/ast_util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ fn is_definitely_non_error_type(ty: &TSType) -> bool {
/// ```
///
/// and the Span encapsulating the break statement,
///
///
/// this function will return " " (2 preceding spaces).
///
/// 2. Given the following source_text:
Expand All @@ -511,8 +511,8 @@ fn is_definitely_non_error_type(ty: &TSType) -> bool {
/// ```
///
/// and the Span encapsulating the break statement,
///
/// this function will return None because there is non-whitespace before the statement,
///
/// this function will return None because there is non-whitespace before the statement,
/// meaning the line of source_text containing the Span is not indented on a new line.
pub fn get_preceding_indent_str(source_text: &str, span: Span) -> Option<&str> {
let span_start = span.start as usize;
Expand Down

0 comments on commit f04acd3

Please sign in to comment.