mirror of
https://github.com/unknwon/the-way-to-go_ZH_CN.git
synced 2025-08-12 05:11:49 +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:
@@ -39,5 +39,6 @@ func main() {
|
||||
continue
|
||||
}
|
||||
cat(bufio.NewReader(f))
|
||||
f.Close()
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user