aboutsummaryrefslogtreecommitdiff
path: root/db_test.go
diff options
context:
space:
mode:
authorTommi Virtanen <tv@eagain.net>2014-03-23 13:20:53 -0700
committerTommi Virtanen <tv@eagain.net>2014-03-23 13:27:37 -0700
commite0a6f5b2af6a09ab42dc46748be9291a16895bc7 (patch)
tree65033a21d6f429272ccf1a3751d5383e39e50d46 /db_test.go
parentCheck spill error in Commit (diff)
downloaddedo-e0a6f5b2af6a09ab42dc46748be9291a16895bc7.tar.gz
dedo-e0a6f5b2af6a09ab42dc46748be9291a16895bc7.tar.xz
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.
Diffstat (limited to 'db_test.go')
0 files changed, 0 insertions, 0 deletions