mirror of
https://github.com/protesilaos/denote.git
synced 2026-09-10 15:26:28 -04:00
Do not check for nil parameter in denote--dir-in-denote-directory-p
This commit is contained in:
parent
f764fac933
commit
4db0214d30
|
|
@ -2046,9 +2046,7 @@ TEMPLATE, and SIGNATURE should be valid for note creation."
|
|||
|
||||
(defun denote--dir-in-denote-directory-p (directory)
|
||||
"Return non-nil if DIRECTORY is in variable `denote-directory'."
|
||||
(and directory
|
||||
(string-prefix-p (denote-directory)
|
||||
(expand-file-name directory))))
|
||||
(string-prefix-p (denote-directory) (expand-file-name directory)))
|
||||
|
||||
(defun denote--valid-file-type (filetype)
|
||||
"Return a valid filetype symbol given the argument FILETYPE.
|
||||
|
|
|
|||
Loading…
Reference in a new issue