mirror of
https://github.com/golang/go
synced 2024-11-02 09:03:03 +00: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
1 changed files with 2 additions and 2 deletions
|
@ -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 a new issue