aboutsummaryrefslogtreecommitdiffstats
path: root/file.go
diff options
context:
space:
mode:
Diffstat (limited to 'file.go')
-rw-r--r--file.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/file.go b/file.go
index 0ec524e..e3e8e93 100644
--- a/file.go
+++ b/file.go
@@ -23,7 +23,7 @@ func (f *File) Contents() (content string, err error) {
if err != nil {
return "", err
}
- defer close(reader, &err)
+ defer checkClose(reader, &err)
buf := new(bytes.Buffer)
buf.ReadFrom(reader)