Commit a6449b66 authored by Robert Griesemer's avatar Robert Griesemer

gofmt: make code more readable by avoiding redeclaration

R=r
CC=golang-dev
https://golang.org/cl/1910045
parent 99aab8ba
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment