From 914712612d61b4e20b25a1a38492716abc5b54bb Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Mon, 11 Jul 2022 12:13:10 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E8=AF=86=E5=88=AB=E6=9C=AA=E5=BC=95?= =?UTF-8?q?=E7=94=A8=E8=B5=84=E6=BA=90=E6=97=B6=E8=80=83=E8=99=91=20PDF=20?= =?UTF-8?q?=E6=A0=87=E6=B3=A8=E5=BC=95=E7=94=A8=20https://github.com/siyua?= =?UTF-8?q?n-note/siyuan/issues/5392?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kernel/model/assets.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/model/assets.go b/kernel/model/assets.go index ffafd85cd..eb73084f0 100644 --- a/kernel/model/assets.go +++ b/kernel/model/assets.go @@ -516,11 +516,11 @@ func UnusedAssets() (ret []string) { } } - // 排除文件注解 + // 排除文件注解和对应文件 var toRemoves []string for asset, _ := range assetsPathMap { if strings.HasSuffix(asset, ".sya") { - toRemoves = append(toRemoves, asset) + toRemoves = append(toRemoves, asset, strings.TrimSuffix(asset, ".sya")) } } for _, toRemove := range toRemoves {