mirror of https://github.com/hak5/bolt.git
Check errors from file close in DB.CopyFile
Write errors are often delayed and reported only by the close. The extra close in defer on success is harmless, (*os.File).Close protects itself against multiple closes, and this way it's immediately obvious there is no code path that would leak open files.master
parent
cb896f6525
commit
e0a6f5b2af
Loading…
Reference in New Issue