From: Jimmy Aguilar Mena Date: Sun, 13 Mar 2022 21:22:02 +0000 (+0100) Subject: Simplify unneeded condition. X-Git-Tag: emacs-29.0.90~1931^2~1002^2~9 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=325548d726c881d4a8d42db11ebce72cb130f66a;p=emacs.git Simplify unneeded condition. * lisp/minibuffer.el (display-completion-list) : The function completion--insert-string already has a condition for when completions is nil. --- diff --git a/lisp/minibuffer.el b/lisp/minibuffer.el index d6d40d5b251..46e7bf2fb05 100644 --- a/lisp/minibuffer.el +++ b/lisp/minibuffer.el @@ -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)