From d5e1ab5fbfc210dbabc2f5ff49b810e4efa526f4 Mon Sep 17 00:00:00 2001 From: charlie Date: Mon, 11 Jul 2022 18:35:30 +0800 Subject: [PATCH] fix(zotero): remove useless condition --- src/main/frontend/extensions/zotero/extractor.cljs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/main/frontend/extensions/zotero/extractor.cljs b/src/main/frontend/extensions/zotero/extractor.cljs index 478c41fbb5..157357f030 100644 --- a/src/main/frontend/extensions/zotero/extractor.cljs +++ b/src/main/frontend/extensions/zotero/extractor.cljs @@ -158,11 +158,10 @@ " " (zotero-imported-file-macro (item-key item) filename)) "linked_file" - (when-let [path (string/replace path " " "%20")] - (str - (markdown-link title (local-link item)) - " " - (zotero-linked-file-macro path))) + (str + (markdown-link title (local-link item)) + " " + (zotero-linked-file-macro path)) "imported_url" (str (markdown-link title url)