mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
refactor(lib): remove redundant full? arg in doom-glob
file-expand-wildcards already does this check, internally.
This commit is contained in:
@ -67,11 +67,10 @@ If the glob ends in a slash, only returns matching directories."
|
|||||||
(declare (side-effect-free t))
|
(declare (side-effect-free t))
|
||||||
(let* (case-fold-search
|
(let* (case-fold-search
|
||||||
file-name-handler-alist
|
file-name-handler-alist
|
||||||
(path (apply #'file-name-concat segments))
|
(path (apply #'file-name-concat segments)))
|
||||||
(full? (file-name-absolute-p path)))
|
|
||||||
(if (string-suffix-p "/" path)
|
(if (string-suffix-p "/" path)
|
||||||
(cl-delete-if-not #'file-directory-p (file-expand-wildcards (substring path 0 -1) full?))
|
(cl-delete-if-not #'file-directory-p (file-expand-wildcards (substring path 0 -1)))
|
||||||
(file-expand-wildcards path full?))))
|
(file-expand-wildcards path))))
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(define-obsolete-function-alias 'doom-dir 'doom-path "3.0.0")
|
(define-obsolete-function-alias 'doom-dir 'doom-path "3.0.0")
|
||||||
|
Reference in New Issue
Block a user