mirror of
https://github.com/golang/go
synced 2024-11-18 07:04:52 -07:00
cmd/gorename: Fixing panic when showing diffs
When displaying a diff the gorename command would panic because the stdout variable was never set. These changes default stdout to os.Stdout. Fixes https://github.com/golang/go/issues/14009 Change-Id: I0902b2b4e2b8e1f46f8ab50e30dcfc841c925174 Reviewed-on: https://go-review.googlesource.com/18813 Reviewed-by: Alan Donovan <adonovan@google.com>
This commit is contained in:
parent
7912bef4df
commit
abfa4875c0
@ -157,7 +157,7 @@ var (
|
||||
Verbose bool
|
||||
)
|
||||
|
||||
var stdout io.Writer
|
||||
var stdout io.Writer = os.Stdout
|
||||
|
||||
type renamer struct {
|
||||
iprog *loader.Program
|
||||
|
@ -157,7 +157,7 @@ var (
|
||||
Verbose bool
|
||||
)
|
||||
|
||||
var stdout io.Writer
|
||||
var stdout io.Writer = os.Stdout
|
||||
|
||||
type renamer struct {
|
||||
iprog *loader.Program
|
||||
|
Loading…
Reference in New Issue
Block a user