]> git.eshelyaron.com Git - emacs.git/commitdiff
Simplify unneeded condition.
authorJimmy Aguilar Mena <spacibba@aol.com>
Sun, 13 Mar 2022 21:22:02 +0000 (22:22 +0100)
committerJimmy Aguilar Mena <spacibba@aol.com>
Sun, 13 Mar 2022 21:22:02 +0000 (22:22 +0100)
* lisp/minibuffer.el (display-completion-list) : The function
completion--insert-string already has a condition for when completions
is nil.

lisp/minibuffer.el

index d6d40d5b251c3746b468f0cca02e116711e6e6c8..46e7bf2fb05719b7ea5f2d592b977c4bd817f6c1 100644 (file)
@@ -2145,10 +2145,9 @@ candidates."
 
     (with-current-buffer standard-output
       (goto-char (point-max))
-      (when completions
-        (when completion-header-format
-          (insert (format completion-header-format (length completions))))
-        (completion--insert-strings completions group-fun))))
+      (when completion-header-format
+        (insert (format completion-header-format (length completions))))
+      (completion--insert-strings completions group-fun)))
 
   (run-hooks 'completion-setup-hook)
   nil)