branch: elpa/magit
commit 537be882b66fa547af58cd05e7c8b08676f535c9
Author: Jonas Bernoulli <[email protected]>
Commit: Jonas Bernoulli <[email protected]>

    magit-list-refs: Cosmetics
---
 lisp/magit-git.el | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/lisp/magit-git.el b/lisp/magit-git.el
index 64e04c76171..308afdd49f7 100644
--- a/lisp/magit-git.el
+++ b/lisp/magit-git.el
@@ -1984,9 +1984,8 @@ SORTBY is a key or list of keys to pass to the `--sort' 
flag of
             (magit-git-lines "for-each-ref"
                              (concat "--format=%(symref)" format)
                              (mapcar (##concat "--sort=" %)
-                                     (pcase (or sortby magit-list-refs-sortby)
-                                       ((and val (pred stringp)) (list val))
-                                       ((and val (pred listp)) val)))
+                                     (ensure-list
+                                      (or sortby magit-list-refs-sortby)))
                              (or namespaces magit-list-refs-namespaces))))
 
 (defun magit-list-branches ()

Reply via email to