Skip to content

Commit 7983720

Browse files
committed
revert change to nil error in CloseWithError
Signed-off-by: Andrew Thornton <art27@cantab.net>
1 parent 5e18cb5 commit 7983720

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

modules/git/utils_closererror.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,6 @@ func (c *closerError) CloseWithError(err error) error {
2424
if c.Closer != nil {
2525
_ = c.Closer.Close()
2626
}
27-
if err == nil {
28-
err = io.ErrClosedPipe
29-
}
3027
c.err = err
3128
return nil
3229
}

0 commit comments

Comments
 (0)