diff --git a/client/allocdir/alloc_dir.go b/client/allocdir/alloc_dir.go index 312866a6a..ea5a3d441 100644 --- a/client/allocdir/alloc_dir.go +++ b/client/allocdir/alloc_dir.go @@ -262,11 +262,8 @@ func (d *AllocDir) FSReadAt(allocID string, path string, offset int64, limit int return err } n, err := f.ReadAt(buf, offset) - if err != nil { - return err - } w.Write(buf[:n]) - return nil + return err } func fileCopy(src, dst string, perm os.FileMode) error {