close asset file after reading

This commit is contained in:
Norwin Roosen 2019-03-11 11:44:25 +01:00
parent b5116bd864
commit 8546cb9006

View file

@ -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)