mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-06 08:01:58 +02:00
forgot to close zip file
This commit is contained in:
@@ -424,6 +424,7 @@ func fetch_cached(name, url, cache_path string, max_cache_age time.Duration) (st
|
||||
if err != nil {
|
||||
return "", fmt.Errorf("Failed to open downloaded zip file with error: %w", err)
|
||||
}
|
||||
defer r.Close()
|
||||
w := zip.NewWriter(tf2)
|
||||
jm.Etag = resp.Header.Get("ETag")
|
||||
jm.Timestamp = utils.ISO8601Format(time.Now())
|
||||
|
||||
Reference in New Issue
Block a user