Readers should not close.

This commit is contained in:
Nuno Cruces
2023-06-02 15:00:12 +01:00
parent 401cb77e38
commit 5ea603ed78

View File

@@ -1,8 +1,6 @@
package readervfs
import (
"io"
"github.com/ncruces/go-sqlite3"
"github.com/ncruces/go-sqlite3/vfs"
)
@@ -40,9 +38,6 @@ func (readerVFS) FullPathname(name string) (string, error) {
type readerFile struct{ SizeReaderAt }
func (r readerFile) Close() error {
if c, ok := r.SizeReaderAt.(io.Closer); ok {
return c.Close()
}
return nil
}