mirror of
https://github.com/golang/go
synced 2024-11-21 14:44:40 -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:
parent
99aab8bacb
commit
a6449b66a4
@ -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)
|
||||
if err != nil {
|
||||
return
|
||||
return err
|
||||
}
|
||||
defer file.Close()
|
||||
return processFile(file)
|
||||
|
Loading…
Reference in New Issue
Block a user