1
0
mirror of https://github.com/golang/go synced 2024-11-18 12:44:49 -07:00

Fix broken build

Due to copy/paste from Google-internal branch.
I can't explain why I didn't test this; sorry.

Change-Id: I7b5f083a124c7cfb0fa6cb0506465a36bd79e983
Reviewed-on: https://go-review.googlesource.com/5654
Reviewed-by: Alan Donovan <adonovan@google.com>
This commit is contained in:
Alan Donovan 2015-02-23 17:19:41 -05:00
parent c7a00958ec
commit b141c84c2e

View File

@ -137,10 +137,10 @@ func main() {
ptalog = buf
defer func() {
if err := buf.Flush(); err != nil {
log.Errorf("flush: %s", err)
log.Printf("flush: %s", err)
}
if err := f.Close(); err != nil {
log.Errorf("close: %s", err)
log.Printf("close: %s", err)
}
}()
}