mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-22 00:08:04 +02:00
...
This commit is contained in:
@@ -354,10 +354,10 @@ func fetch_cached(name, url, cache_path string, max_cache_age time.Duration) (st
|
||||
if err != nil && !errors.Is(err, fs.ErrNotExist) {
|
||||
return "", err
|
||||
}
|
||||
defer zf.Close()
|
||||
|
||||
var jm JSONMetadata
|
||||
if err == nil {
|
||||
defer zf.Close()
|
||||
err = json.Unmarshal(utils.UnsafeStringToBytes(zf.Comment), &jm)
|
||||
if max_cache_age < 0 {
|
||||
return cache_path, nil
|
||||
|
||||
Reference in New Issue
Block a user