]> git.eshelyaron.com Git - emacs.git/commitdiff
Remove unnecessary dependency on seq library
authorMark Oteiza <mvoteiza@udel.edu>
Sun, 3 Jan 2021 21:58:09 +0000 (16:58 -0500)
committerMark Oteiza <mvoteiza@udel.edu>
Sun, 3 Jan 2021 21:58:09 +0000 (16:58 -0500)
* lisp/json.el: Remove require declaration.
(json-encode-array): Just use length and /=.

lisp/json.el

index f5659d81efa1cbb04bd0a89f6e9d0c4e1133fb03..24986590cb028b25a9b2ff283800f6dd6677553e 100644 (file)
@@ -55,7 +55,6 @@
 ;;; Code:
 
 (require 'map)
-(require 'seq)
 (require 'subr-x)
 
 ;; Parameters
@@ -655,7 +654,7 @@ become JSON objects."
 (defun json-encode-array (array)
   "Return a JSON representation of ARRAY."
   (if (and json-encoding-pretty-print
-           (not (seq-empty-p array)))
+           (/= 0 (length array)))
       (concat
        "["
        (json--with-indentation