branch: externals/osm
commit bd810d1aa9fc248c62068ae5ded192f664114af1
Author: Daniel Mendler <m...@daniel-mendler.de>
Commit: Daniel Mendler <m...@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