From a40a06b0748d69bd12d4c253ca0b5d827e81eea2 Mon Sep 17 00:00:00 2001 From: dickmao Date: Tue, 22 Jun 2021 19:06:36 -0400 Subject: [PATCH] John Mccarthy is rolling in his grave. * lisp/gnus/message.el (message-replace-header): Elide redundancy. --- lisp/gnus/message.el | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/lisp/gnus/message.el b/lisp/gnus/message.el index 69e2c5cbbc..a9be2d6b34 100644 --- a/lisp/gnus/message.el +++ b/lisp/gnus/message.el @@ -8730,12 +8730,10 @@ message-replace-header (message-narrow-to-headers) (message-remove-header header)) (when (or force (> (length new-value) 0)) - (if after - (apply #'message-position-on-field header - (if (listp after) - after - (list after))) - (message-position-on-field header)) + (apply #'message-position-on-field header + (if (listp after) + after + (list after))) (insert new-value)))) (make-obsolete-variable -- 2.26.2