branch: elpa/helm
commit 03dd33339cf9d3ead57a47737f246b94dddba9a2
Author: Thierry Volpiatto <thie...@posteo.net>
Commit: Thierry Volpiatto <thie...@posteo.net>

    Simplify cache evaluation in helm-packages-get-url-from-elpa
---
 helm-packages.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/helm-packages.el b/helm-packages.el
index 24a1017106..2a69c2be4b 100644
--- a/helm-packages.el
+++ b/helm-packages.el
@@ -253,9 +253,9 @@ PROVIDER can be one of \"gnu\" or \"nongnu\"."
                     ("gnu" helm-packages-gnu-elpa-url-recipes)
                     ("nongnu" helm-packages-nongnu-elpa-url-recipes)))
          (cache (helm-acase provider
-                  ("gnu"        'helm-packages--gnu-elpa-recipes-cache)
-                  ("nongnu" 'helm-packages--nongnu-elpa-recipes-cache)))
-         (recipe  (or (symbol-value cache)
+                  ("gnu"    helm-packages--gnu-elpa-recipes-cache)
+                  ("nongnu" helm-packages--nongnu-elpa-recipes-cache)))
+         (recipe  (or cache
                       (set cache
                            (with-temp-buffer
                              (url-insert-file-contents address)

Reply via email to