Skip to content

Commit

Permalink
fix code
Browse files Browse the repository at this point in the history
  • Loading branch information
flying-sheep committed Aug 14, 2023
1 parent d87d4e7 commit cb156c3
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions crates/taplo/src/formatter/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1106,10 +1106,8 @@ fn format_array(node: SyntaxNode, options: &Options, context: &Context) -> impl
skip_newlines = 0;
}

if !formatted.ends_with(']') {
formatted
.extend(options.newlines(newline_count.saturating_sub(skip_newlines)));
}
formatted
.extend(options.newlines(newline_count.saturating_sub(skip_newlines)));
}
COMMENT => {
let newline_before = t
Expand Down

0 comments on commit cb156c3

Please sign in to comment.