summaryrefslogtreecommitdiff
path: root/lisp/json.el
diff options
context:
space:
mode:
authorMark Oteiza <mvoteiza@udel.edu>2021-01-03 16:58:09 -0500
committerMark Oteiza <mvoteiza@udel.edu>2021-01-03 16:58:09 -0500
commitd3d60ab2723fe4b3fa15f4d593319d0d08892cb0 (patch)
tree35efa1d54c4d9d0e471b2add67a13d29174c9299 /lisp/json.el
parent1fa1354964aa3a0e5e649df6c963b6c11333a350 (diff)
downloademacs-d3d60ab2723fe4b3fa15f4d593319d0d08892cb0.tar.gz
Remove unnecessary dependency on seq library
* lisp/json.el: Remove require declaration. (json-encode-array): Just use length and /=.
Diffstat (limited to 'lisp/json.el')
-rw-r--r--lisp/json.el3
1 files changed, 1 insertions, 2 deletions
diff --git a/lisp/json.el b/lisp/json.el
index f5659d81efa..24986590cb0 100644
--- a/lisp/json.el
+++ b/lisp/json.el
@@ -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