1
0
mirror of https://github.com/golang/go synced 2024-11-25 06:07:58 -07:00

gofmt: gofmt test harness bug fix

Don't use the rewrite rule from a previous test
for the next test if there is no rewrite rule
provided.

R=r, r2
CC=golang-dev
https://golang.org/cl/4419045
This commit is contained in:
Robert Griesemer 2011-04-14 16:33:29 -07:00
parent 8b35293070
commit c78cddd7de

View File

@ -19,6 +19,7 @@ import (
func initRewrite() {
if *rewriteRule == "" {
rewrite = nil // disable any previous rewrite
return
}
f := strings.Split(*rewriteRule, "->", -1)