aboutsummaryrefslogtreecommitdiff
path: root/src/data
diff options
context:
space:
mode:
Diffstat (limited to 'src/data')
-rw-r--r--src/data/pgp.lisp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/data/pgp.lisp b/src/data/pgp.lisp
index 6963b53..8650ce9 100644
--- a/src/data/pgp.lisp
+++ b/src/data/pgp.lisp
@@ -34,9 +34,10 @@
(let ((mod (file-write-date location))
(cache (read-store location)))
(labels ((update-cache ()
- (when-let ((new-mod (> (file-write-date location) mod)))
- (setq mod new-mod
- cache (read-store location))))
+ (let ((new-mod (file-write-date location)))
+ (when (> new-mod mod)
+ (setq mod new-mod
+ cache (read-store location)))))
(check (iden1 iden2)
(update-cache)
(cadr (data-assoc iden1 iden2 cache)))