loading up the forgejo repo on tangled to test page performance
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: close file in the Upload func (#30262)

(cherry picked from commit 0ceecfc11ab4851863a5a6bc5e398d2baf7e86f6)

authored by

guangwu and committed by
Gergely Nagy
0eb2105b a53a94e1

+2 -2
+2 -2
modules/lfs/filesystem_client.go
··· 44 44 if err != nil { 45 45 return err 46 46 } 47 - 47 + defer f.Close() 48 48 if err := callback(p, f, nil); err != nil { 49 49 return err 50 50 } ··· 75 75 if err != nil { 76 76 return err 77 77 } 78 - 78 + defer f.Close() 79 79 _, err = io.Copy(f, content) 80 80 81 81 return err