mirror of
https://github.com/go-gitea/gitea
synced 2025-01-18 20:47:44 +01:00
parent
34b8becef0
commit
4e85c8e0d8
@ -84,6 +84,11 @@ func ServeBlobOrLFS(ctx *context.Context, blob *git.Blob) error {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
defer func() {
|
||||||
|
if err = lfsDataRc.Close(); err != nil {
|
||||||
|
log.Error("ServeBlobOrLFS: Close: %v", err)
|
||||||
|
}
|
||||||
|
}()
|
||||||
return ServeData(ctx, ctx.Repo.TreePath, lfsDataRc)
|
return ServeData(ctx, ctx.Repo.TreePath, lfsDataRc)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user