---
description: Formatting rule to eliminate unnecessary blank lines within function bodies and code blocks for cleaner, more compact code
alwaysApply: true
---
<formatting_rule type="linebreaks">
- Don't need to add extra line breaks between variables definitions and code blocks
- When writing a function, mainly small functions, don't need line breaks
</formatting_rule>

<example type="bad_practice">
## Bad

```go
func Foo() {
    bar := "bar"

    bar = "baz"

    return
}
```
</example>

<example type="good_practice">
## Good

```go
func Foo() {
    bar := "bar"
    bar = "baz"
    return
}
```
</example>
