mvdan/goreduce

Don't introduce empty lines

mvdan opened this issue · 1 comments

mvdan commented

In the README, we show the result:

func Crasher() {
        a := []int{1, 2, 3}
        println(a[10])
}

We actually produce:

func Crasher() {
        a := []int{1, 2, 3}

        println(a[10])
}

Figure out a way to remove stuff from the AST without introducing these extra empty lines.

mvdan commented

We've gotten way better at this, but some added lines remain.