Fix #4758: wrong-type-arg listp on doom-store-persist
This commit is contained in:
parent
14eb254b4b
commit
b0bec922a9
1 changed files with 2 additions and 1 deletions
|
@ -104,7 +104,8 @@ the actual variables themselves or their values."
|
||||||
If it doesn't exist or has expired, DEFAULT_VALUE is returned."
|
If it doesn't exist or has expired, DEFAULT_VALUE is returned."
|
||||||
(let ((location (or location doom-store-location))
|
(let ((location (or location doom-store-location))
|
||||||
(data (gethash key (doom--store-init location) default-value)))
|
(data (gethash key (doom--store-init location) default-value)))
|
||||||
(if (not (doom--store-expired-p key data))
|
(if (not (or (eq data default-value)
|
||||||
|
(doom--store-expired-p key data)))
|
||||||
(cdr data)
|
(cdr data)
|
||||||
(doom-store-rem key location noflush)
|
(doom-store-rem key location noflush)
|
||||||
default-value)))
|
default-value)))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue