Skip to content

Commit bda7989

Browse files
authored
Merge pull request #5 from bk2204/use-readcloser
object_db: use ReadCloser for uncompressed objects
2 parents 1e97572 + 4be4f67 commit bda7989

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

object_db.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ func (o *ObjectDatabase) open(sha []byte) (*ObjectReader, error) {
285285
if o.ro.IsCompressed() {
286286
return NewObjectReadCloser(f)
287287
}
288-
return NewUncompressedObjectReader(f)
288+
return NewUncompressedObjectReadCloser(f)
289289
}
290290

291291
// openDecode calls decode (see: below) on the object named "sha" after openin

0 commit comments

Comments
 (0)