Skip to content

Commit 0ff0e7b

Browse files
committed
fix error check
1 parent dc7fc8b commit 0ff0e7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/lfs/content_store.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ func (s *ContentStore) Put(pointer Pointer, r io.Reader) error {
6262

6363
// check again whether there is any error during the Save operation
6464
// because some errors might be ignored by the Reader's caller
65-
if wrappedRd.lastError != nil {
65+
if wrappedRd.lastError != nil && !errors.Is(wrappedRd.lastError, io.EOF) {
6666
return wrappedRd.lastError
6767
}
6868

0 commit comments

Comments
 (0)