summaryrefslogtreecommitdiffstats
path: root/app/file.go
diff options
context:
space:
mode:
Diffstat (limited to 'app/file.go')
-rw-r--r--app/file.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/file.go b/app/file.go
index 537f76aaa..8cee3d740 100644
--- a/app/file.go
+++ b/app/file.go
@@ -70,7 +70,8 @@ func (a *App) ReadFile(path string) ([]byte, *model.AppError) {
return backend.ReadFile(path)
}
-func (a *App) FileReader(path string) (io.Reader, *model.AppError) {
+// Caller must close the first return value
+func (a *App) FileReader(path string) (io.ReadCloser, *model.AppError) {
backend, err := a.FileBackend()
if err != nil {
return nil, err