refactor(lib): remove redundant full? arg in doom-glob
file-expand-wildcards already does this check, internally.
This commit is contained in:
parent
afa154db27
commit
0ce2989d86
1 changed files with 3 additions and 4 deletions
|
@ -67,11 +67,10 @@ If the glob ends in a slash, only returns matching directories."
|
|||
(declare (side-effect-free t))
|
||||
(let* (case-fold-search
|
||||
file-name-handler-alist
|
||||
(path (apply #'file-name-concat segments))
|
||||
(full? (file-name-absolute-p path)))
|
||||
(path (apply #'file-name-concat segments)))
|
||||
(if (string-suffix-p "/" path)
|
||||
(cl-delete-if-not #'file-directory-p (file-expand-wildcards (substring path 0 -1) full?))
|
||||
(file-expand-wildcards path full?))))
|
||||
(cl-delete-if-not #'file-directory-p (file-expand-wildcards (substring path 0 -1)))
|
||||
(file-expand-wildcards path))))
|
||||
|
||||
;;;###autoload
|
||||
(define-obsolete-function-alias 'doom-dir 'doom-path "3.0.0")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue