diff options
| author | Jonas Bernoulli <jonas@bernoul.li> | 2025-02-02 01:07:24 +0100 |
|---|---|---|
| committer | Jonas Bernoulli <jonas@bernoul.li> | 2025-02-02 01:07:24 +0100 |
| commit | 8010ab4eeda20d3ba9594e22a20da77f2caf82b9 (patch) | |
| tree | fb24c7cbd457ef884874010105a1f503271b0ca1 /lisp/magit-gitignore.el | |
| parent | 033aa10b9357fae94059268d52990e654d624e8b (diff) | |
Use ## and mapcan instead of --mapcat
In two cases use lambda, not ##.
Diffstat (limited to 'lisp/magit-gitignore.el')
| -rw-r--r-- | lisp/magit-gitignore.el | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/lisp/magit-gitignore.el b/lisp/magit-gitignore.el index 14ce430..951b0f6 100644 --- a/lisp/magit-gitignore.el +++ b/lisp/magit-gitignore.el @@ -116,11 +116,12 @@ Rules that are defined in that file affect all local repositories." (base (and base (file-directory-p base) base)) (choices (delete-dups - (--mapcat - (cons (concat "/" it) - (and-let* ((ext (file-name-extension it))) - (list (concat "/" (file-name-directory it) "*." ext) - (concat "*." ext)))) + (mapcan + (lambda (file) + (cons (concat "/" file) + (and-let* ((ext (file-name-extension file))) + (list (concat "/" (file-name-directory file) "*." ext) + (concat "*." ext))))) (sort (nconc (magit-untracked-files nil base) ;; The untracked section of the status buffer lists |
