Skip to content

Commit 290b868

Browse files
committed
forgot to close zip file
1 parent c19ac53 commit 290b868

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tools/themes/collection.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -424,6 +424,7 @@ func fetch_cached(name, url, cache_path string, max_cache_age time.Duration) (st
424424
if err != nil {
425425
return "", fmt.Errorf("Failed to open downloaded zip file with error: %w", err)
426426
}
427+
defer r.Close()
427428
w := zip.NewWriter(tf2)
428429
jm.Etag = resp.Header.Get("ETag")
429430
jm.Timestamp = utils.ISO8601Format(time.Now())

0 commit comments

Comments
 (0)