branch: elpa/hyperdrive
commit bba6d9a8d0c76a20ddcbe5eff100ac7545b55b5d
Author: Joseph Turner <jos...@ushin.org>
Commit: Joseph Turner <jos...@ushin.org>

    Tidy: (h/history--invalidate-entry) Remove unnecessary `and' check
---
 hyperdrive-history.el | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/hyperdrive-history.el b/hyperdrive-history.el
index 7bf8a04224..0cca7334b3 100644
--- a/hyperdrive-history.el
+++ b/hyperdrive-history.el
@@ -123,9 +123,8 @@ Invalidated ewoc node entries will have these slots updated:
 All other slots in each ewoc node entry data will be reused."
   (when-let* ((history-buffer (h/history-find-buffer-visiting entry))
               (history-ewoc (buffer-local-value 'h/ewoc history-buffer))
-              (history-node (and history-ewoc
-                                 (h/ewoc-find-node history-ewoc entry
-                                   :predicate #'he/within-version-range-p)))
+              (history-node (h/ewoc-find-node history-ewoc entry
+                              :predicate #'he/within-version-range-p))
               (history-ewoc-entry (ewoc-data history-node)))
     (setf (map-elt (he/etc history-ewoc-entry) 'block-length-downloaded)
           (map-elt (he/etc entry) 'block-length-downloaded))

Reply via email to