mirror of
https://github.com/unknwon/the-way-to-go_ZH_CN.git
synced 2025-08-12 01:21:38 +08:00
Close unclosed files (#735)
* Cose unclosed files * Close additional unclosed file * Dont use defer in loop * Removed missed instances of defer in loop
This commit is contained in:
@@ -31,5 +31,6 @@ func main() {
|
||||
continue
|
||||
}
|
||||
cat(bufio.NewReader(f))
|
||||
f.Close()
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user