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

gofmt: make code more readable by avoiding redeclaration

R=r
CC=golang-dev
https://golang.org/cl/1910045
This commit is contained in:
Robert Griesemer 2010-08-03 23:39:01 -07:00
parent 99aab8bacb
commit a6449b66a4

View File

@ -133,10 +133,10 @@ func processFile(f *os.File) os.Error {
} }
func processFileByName(filename string) (err os.Error) { func processFileByName(filename string) os.Error {
file, err := os.Open(filename, os.O_RDONLY, 0) file, err := os.Open(filename, os.O_RDONLY, 0)
if err != nil { if err != nil {
return return err
} }
defer file.Close() defer file.Close()
return processFile(file) return processFile(file)