]> git.eshelyaron.com Git - emacs.git/commitdiff
Simplify check for non-empty list
authorAndreas Schwab <schwab@linux-m68k.org>
Sat, 6 May 2023 20:17:19 +0000 (22:17 +0200)
committerAndreas Schwab <schwab@linux-m68k.org>
Sat, 6 May 2023 20:17:45 +0000 (22:17 +0200)
* lisp/gnus/nntp.el (nntp-with-open-group): Simplify check for
non-empty list.

lisp/gnus/nntp.el

index 20c176f2269ed2e90b859c0c5cfad4443fddec02..a57fd200599ae6225499eecb97b13a4fff9cd814 100644 (file)
@@ -643,8 +643,7 @@ connection timeouts (which may be several minutes) or
 `nntp-with-open-group', opens a new connection then re-issues the NNTP
 command whose response triggered the error."
   (declare (indent 2) (debug (form form [&optional symbolp] def-body)))
-  (when (and (listp connectionless)
-            (not (eq connectionless nil)))
+  (when (consp connectionless))
     (setq forms (cons connectionless forms)
          connectionless nil))
   `(nntp-with-open-group-function ,group ,server ,connectionless