Skip to content

Commit 4604048

Browse files
Removed some vestigial code related to Range bounds checks (#20312)
1 parent ae52df6 commit 4604048

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

Diff for: modules/lfs/content_store.go

-16
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import (
88
"crypto/sha256"
99
"encoding/hex"
1010
"errors"
11-
"fmt"
1211
"hash"
1312
"io"
1413
"os"
@@ -24,21 +23,6 @@ var (
2423
ErrSizeMismatch = errors.New("Content size does not match")
2524
)
2625

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-
4226
// ContentStore provides a simple file system based storage.
4327
type ContentStore struct {
4428
storage.ObjectStorage

0 commit comments

Comments
 (0)