[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/emacsql eb69177f4e 2/2: emacsql-live-p: Remove double nega
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/emacsql eb69177f4e 2/2: emacsql-live-p: Remove double negative |
Date: |
Tue, 23 Jan 2024 12:59:32 -0500 (EST) |
branch: elpa/emacsql
commit eb69177f4e73fcdbab331c6f06670f8db080fe17
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>
emacsql-live-p: Remove double negative
Even though the documented behavior doesn't demand it, ensure we
continue to return a boolean.
---
emacsql.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/emacsql.el b/emacsql.el
index be3acc4570..9ee771237e 100644
--- a/emacsql.el
+++ b/emacsql.el
@@ -123,7 +123,7 @@ Retrieve the slot `log-buffer' from an object of class
`emacsql-connection'."
(cl-defmethod emacsql-live-p ((connection emacsql-connection))
"Return non-nil if CONNECTION is still alive and ready."
- (not (null (process-live-p (oref connection handle)))))
+ (and (process-live-p (oref connection handle)) t))
(cl-defgeneric emacsql-types (connection)
"Return an alist mapping EmacSQL types to database types.