mirror of
https://github.com/golang/go
synced 2024-11-21 20:04:44 -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:
parent
8b35293070
commit
c78cddd7de
@ -19,6 +19,7 @@ import (
|
||||
|
||||
func initRewrite() {
|
||||
if *rewriteRule == "" {
|
||||
rewrite = nil // disable any previous rewrite
|
||||
return
|
||||
}
|
||||
f := strings.Split(*rewriteRule, "->", -1)
|
||||
|
Loading…
Reference in New Issue
Block a user