mirror of
https://gitea.com/gitea/tea.git
synced 2024-06-03 10:11:22 +05:30
close asset file after reading
This commit is contained in:
parent
b5116bd864
commit
8546cb9006
|
@ -118,6 +118,7 @@ func runReleaseCreate(ctx *cli.Context) error {
|
|||
if file, err = os.Open(asset); err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
defer file.Close()
|
||||
|
||||
filePath := filepath.Base(asset)
|
||||
|
||||
|
|
Loading…
Reference in a new issue