Skip to content

Commit f6d66b2

Browse files
committed
...
1 parent 9443b0e commit f6d66b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/themes/collection.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,10 +354,10 @@ func fetch_cached(name, url, cache_path string, max_cache_age time.Duration) (st
354354
if err != nil && !errors.Is(err, fs.ErrNotExist) {
355355
return "", err
356356
}
357-
defer zf.Close()
358357

359358
var jm JSONMetadata
360359
if err == nil {
360+
defer zf.Close()
361361
err = json.Unmarshal(utils.UnsafeStringToBytes(zf.Comment), &jm)
362362
if max_cache_age < 0 {
363363
return cache_path, nil

0 commit comments

Comments
 (0)