]> git.eshelyaron.com Git - emacs.git/commitdiff
Clean up code in `message-replace-header'
authordickmao <none>
Wed, 23 Jun 2021 12:50:05 +0000 (14:50 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Wed, 23 Jun 2021 12:50:05 +0000 (14:50 +0200)
* lisp/gnus/message.el (message-replace-header): Elide redundancy
(bug#49180).

lisp/gnus/message.el

index 69e2c5cbbc1bd60c98725153517349dbbfd443c9..a9be2d6b34737e829aef5cefc499e82a9c35a348 100644 (file)
@@ -8730,12 +8730,10 @@ headers.  If FORCE, insert new field even if NEW-VALUE is empty."
       (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