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

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

[elpa] externals/osm bd810d1aa9 1/2: Use more robust check


From: ELPA Syncer
Subject: [elpa] externals/osm bd810d1aa9 1/2: Use more robust check
Date: Sat, 7 May 2022 05:57:40 -0400 (EDT)

branch: externals/osm
commit bd810d1aa9fc248c62068ae5ded192f664114af1
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>

    Use more robust check
---
 osm.el | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/osm.el b/osm.el
index 53767de5db..d70f4f3620 100644
--- a/osm.el
+++ b/osm.el
@@ -751,8 +751,7 @@ Should be at least 7 days according to the server usage 
policies."
   (unless (libxml-available-p)
     (warn "osm: libxml is not available"))
   ;; json-available-p is not available on Emacs 27
-  (unless (and (fboundp 'json-parse-string)
-               (equal (json-parse-string "[]") []))
+  (unless (ignore-errors (equal [] (json-parse-string "[]")))
     (warn "osm: libjansson is not available"))
   (setq-local osm-server osm-server
               line-spacing nil



reply via email to

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