branch: elpa/git-commit
commit 5407ac473348678975df9b41bf7b351aeabb9260
Author: Jonas Bernoulli <[email protected]>
Commit: Jonas Bernoulli <[email protected]>

    magit-read-file: Cosmetics
---
 lisp/magit-files.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lisp/magit-files.el b/lisp/magit-files.el
index 19acb3fbb5..9d9f6dcf72 100644
--- a/lisp/magit-files.el
+++ b/lisp/magit-files.el
@@ -500,7 +500,8 @@ Git, then fallback to using `delete-file'."
 
 (defun magit-read-file (prompt &optional tracked-only)
   (let ((choices (nconc (magit-list-files)
-                        (unless tracked-only (magit-untracked-files)))))
+                        (and (not tracked-only)
+                             (magit-untracked-files)))))
     (magit-completing-read
      prompt choices nil t nil nil
      (car (member (or (magit-section-value-if '(file submodule))

Reply via email to