Skip to content

Commit

Permalink
remove resolving ast.Block
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyi98 committed Nov 19, 2024
1 parent 3526d31 commit efc89e1
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions vlib/v/fmt/fmt.v
Original file line number Diff line number Diff line change
Expand Up @@ -443,11 +443,6 @@ fn (f &Fmt) should_insert_newline_before_node(node ast.Node, prev_node ast.Node)
ast.Import {
return false
}
ast.Block {
if node is ast.Block && !node.is_unsafe && node.pos.line_nr - prev_line_nr > 1 {
return true
}
}
ast.ConstDecl {
if node !is ast.ConstDecl && !(node is ast.ExprStmt && node.expr is ast.Comment) {
return true
Expand Down

0 comments on commit efc89e1

Please sign in to comment.