]> Cypherpunks repositories - gostls13.git/commit
go/ast: remove many blank lines in SortImports
authorSokolov Yura <funny.falcon@gmail.com>
Fri, 4 Dec 2015 17:54:24 +0000 (20:54 +0300)
committerRuss Cox <rsc@golang.org>
Fri, 4 Dec 2015 20:01:51 +0000 (20:01 +0000)
commit43a9e998d2d54c27066255147fd6c775532b7d31
tree514e1e37ab967a5ef0c7e11d21bff0310b05c0dc
parenta8d9c3103d6ed1b867f9e49bd2a157a195f86d9f
go/ast: remove many blank lines in SortImports

Currently only one blank line is checked to be removed.
Changing sort.Sort may lead to more blank lines.
Let's remove them all.

It fixes a bug found by https://golang.org/cl/15688

Change-Id: I682cc23ecd7b10d9b6feb160da040a155297f578
Reviewed-on: https://go-review.googlesource.com/17440
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
src/go/ast/import.go