mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-15 19:48:06 +01:00
🎨 Clean code https://github.com/siyuan-note/siyuan/pull/16892
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
a0892ef77e
commit
d7f7ce60a8
1 changed files with 1 additions and 0 deletions
1
kernel/cache/asset.go
vendored
1
kernel/cache/asset.go
vendored
|
|
@ -89,6 +89,7 @@ func GetAssetHash(hash string) *AssetHash {
|
|||
if !filelock.IsExist(filepath.Join(util.DataDir, asset.Path)) {
|
||||
// 文件不存在,清理缓存
|
||||
delete(assetHashCache, hash)
|
||||
delete(assetPathHashCache, asset.Path)
|
||||
return nil
|
||||
}
|
||||
return asset
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue