aboutsummaryrefslogtreecommitdiff
path: root/objectstore/loose/paths.go
diff options
context:
space:
mode:
Diffstat (limited to 'objectstore/loose/paths.go')
-rw-r--r--objectstore/loose/paths.go3
1 files changed, 0 insertions, 3 deletions
diff --git a/objectstore/loose/paths.go b/objectstore/loose/paths.go
index ee761f39..0e4b7d05 100644
--- a/objectstore/loose/paths.go
+++ b/objectstore/loose/paths.go
@@ -17,9 +17,6 @@ func (store *Store) objectPath(id objectid.ObjectID) (string, error) {
return "", fmt.Errorf("objectstore/loose: object id algorithm mismatch: got %s want %s", id.Algorithm(), store.algo)
}
hex := id.String()
- if len(hex) != store.algo.HexLen() {
- return "", fmt.Errorf("objectstore/loose: malformed object id %q", hex)
- }
return path.Join("objects", hex[:2], hex[2:]), nil
}