It is not recommended to use unnecessary blocks.
Blocks aren't necessary unless scopes need to be separated. If a scope is using values solely from the parent scope, it isn't needed.
var err error
{
err = fmt.Errorf("some error occurred")
}
err := fmt.Errorf("some error occurred")
x := 1
{
x += 4
}
x := 1
x += 4