From 325548d726c881d4a8d42db11ebce72cb130f66a Mon Sep 17 00:00:00 2001 From: Jimmy Aguilar Mena Date: Sun, 13 Mar 2022 22:22:02 +0100 Subject: [PATCH] Simplify unneeded condition. * lisp/minibuffer.el (display-completion-list) : The function completion--insert-string already has a condition for when completions is nil. --- lisp/minibuffer.el | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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) -- 2.39.2