From 45546ff6fab6c19b511cadb923c75f857623367d Mon Sep 17 00:00:00 2001 From: Jethro Kuan Date: Fri, 9 Apr 2021 18:15:45 +0800 Subject: [PATCH] fix some lints --- org-roam-capture.el | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/org-roam-capture.el b/org-roam-capture.el index dfcbc9a..20ca61f 100644 --- a/org-roam-capture.el +++ b/org-roam-capture.el @@ -227,7 +227,7 @@ the file if the original value of :no-save is not t and (roam-template (concat roam-head org-template))) (if (or (file-exists-p file-path) (find-buffer-visiting file-path)) - (make-directory (file-name-directory file-path) t) + (make-directory (file-name-directory file-path) t) (org-roam-capture--put :orig-no-save (org-capture-get :no-save) :new-file t) (org-capture-put :template roam-template @@ -305,7 +305,7 @@ This function is used solely in Org-roam's capture templates: see :limit 1] ref))))) file - (user-error "No such ref \"%s\"" ref)))) + (user-error "No such ref \"%s\"" ref)))) (t (when-let ((time (cdr (assoc 'time org-roam-capture--info)))) (org-capture-put :default-time time)) @@ -333,11 +333,11 @@ This function is used solely in Org-roam's capture templates: see PROPS is a plist containing additional Org-roam specific properties to be added to the template." (let* ((key (or (plist-get template :key) - (user-error "template has no :key"))) + (user-error "Template has no :key"))) (desc (or (plist-get template :desc) - (user-error "template has no :desc"))) + (user-error "Template has no :desc"))) (body (or (plist-get template :body) - (user-error "template has no :body"))) + (user-error "Template has no :body"))) (rest (org-plist-delete template :key)) (rest (org-plist-delete rest :desc)) (rest (org-plist-delete rest :body))