We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae52df6 commit 4604048Copy full SHA for 4604048
modules/lfs/content_store.go
@@ -8,7 +8,6 @@ import (
8
"crypto/sha256"
9
"encoding/hex"
10
"errors"
11
- "fmt"
12
"hash"
13
"io"
14
"os"
@@ -24,21 +23,6 @@ var (
24
23
ErrSizeMismatch = errors.New("Content size does not match")
25
)
26
27
-// ErrRangeNotSatisfiable represents an error which request range is not satisfiable.
28
-type ErrRangeNotSatisfiable struct {
29
- FromByte int64
30
-}
31
-
32
-// IsErrRangeNotSatisfiable returns true if the error is an ErrRangeNotSatisfiable
33
-func IsErrRangeNotSatisfiable(err error) bool {
34
- _, ok := err.(ErrRangeNotSatisfiable)
35
- return ok
36
37
38
-func (err ErrRangeNotSatisfiable) Error() string {
39
- return fmt.Sprintf("Requested range %d is not satisfiable", err.FromByte)
40
41
42
// ContentStore provides a simple file system based storage.
43
type ContentStore struct {
44
storage.ObjectStorage
0 commit comments