emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/dtache 1bc36dcd74 2/3: Fix error in dtache--db-director


From: ELPA Syncer
Subject: [elpa] externals/dtache 1bc36dcd74 2/3: Fix error in dtache--db-directory-event
Date: Fri, 28 Jan 2022 11:57:30 -0500 (EST)

branch: externals/dtache
commit 1bc36dcd746a1564f4f792398ac0771225168611
Author: Niklas Eklund <niklas.eklund@posteo.net>
Commit: Niklas Eklund <niklas.eklund@posteo.net>

    Fix error in dtache--db-directory-event
    
    The event was never used in the pcase.
---
 dtache.el | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/dtache.el b/dtache.el
index 42f183271e..d1867bdfd5 100644
--- a/dtache.el
+++ b/dtache.el
@@ -1141,9 +1141,10 @@ session and trigger a state transition."
 
 If event is cased by an update to the `dtache' database, re-initialize
 `dtache--sessions'."
-  (pcase-let ((`(,_descriptor ,action ,file)))
-    (when (and (string= "dtache.db" file)
-               (eq 'attribute-changed action)))
+  (pcase-let* ((`(,_descriptor ,action ,file) event)
+               (database-updated  (and (string= "dtache.db" file)
+                                       (eq 'attribute-changed action))))
+    (when database-updated)
     (dtache--db-initialize)))
 
 ;;;;; UI



reply via email to

[Prev in Thread] Current Thread [Next in Thread]