Skip to content

Commit 400eb4c

Browse files
committed
elpaca-menu-melpa: ensure cache rewritten after updating
See: #457
1 parent 1d299d7 commit 400eb4c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

elpaca-menu-melpa.el

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,9 @@ If REQUEST is `update`, update the MELPA recipe cache."
130130
(pcase request
131131
('index (elpaca-menu-melpa--index item))
132132
('update (setq elpaca-menu-melpa--index-cache nil)
133-
(if (file-exists-p (expand-file-name "melpa/" elpaca-cache-directory))
134-
(elpaca-menu-melpa--update)
135-
(elpaca-menu-melpa 'index item)))))
133+
(when (file-exists-p (expand-file-name "melpa/" elpaca-cache-directory))
134+
(elpaca-menu-melpa--update))
135+
(elpaca-menu-melpa 'index item))))
136136

137137
(provide 'elpaca-menu-melpa)
138138
;;; elpaca-menu-melpa.el ends here

0 commit comments

Comments
 (0)