mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-07 16:27:00 +02:00
1 parent
cb31f88383
commit
c1152b15fe
1 file changed
+5
@@ -84,6 +84,11 @@ func ServeBlobOrLFS(ctx *context.Context, blob *git.Blob) error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
defer func() {
|
||||
if err = lfsDataRc.Close(); err != nil {
|
||||
log.Error("ServeBlobOrLFS: Close: %v", err)
|
||||
}
|
||||
}()
|
||||
return ServeData(ctx, ctx.Repo.TreePath, lfsDataRc)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user