branch: elpa/magit
commit 05c0b889e2f32e01d7f7d1066ad48c0f31a1c105
Author: Jonas Bernoulli <[email protected]>
Commit: Jonas Bernoulli <[email protected]>
magit-config-get-from-cached-list: Use thread$
---
lisp/magit-git.el | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/lisp/magit-git.el b/lisp/magit-git.el
index ed3f2030fd..f0d9227920 100644
--- a/lisp/magit-git.el
+++ b/lisp/magit-git.el
@@ -815,10 +815,10 @@ See info node `(magit)Debugging Tools' for more
information."
(defun magit-config-get-from-cached-list (key)
(gethash
- ;; `git config --list' downcases first and last components of the key.
- (let* ((key (replace-regexp-in-string "\\`[^.]+" #'downcase key t t))
- (key (replace-regexp-in-string "[^.]+\\'" #'downcase key t t)))
- key)
+ (thread$ key
+ ;; `git config --list' downcases first and last components.
+ (replace-regexp-in-string "\\`[^.]+" #'downcase $ t t)
+ (replace-regexp-in-string "[^.]+\\'" #'downcase $ t t))
(magit--with-refresh-cache (cons (magit-toplevel) 'config)
(let ((configs (make-hash-table :test #'equal)))
(dolist (conf (magit-git-items "config" "--list" "-z"))