projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1fa1354
)
Remove unnecessary dependency on seq library
author
Mark Oteiza
<mvoteiza@udel.edu>
Sun, 3 Jan 2021 21:58:09 +0000
(16:58 -0500)
committer
Mark 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
patch
|
blob
|
history
diff --git
a/lisp/json.el
b/lisp/json.el
index f5659d81efa1cbb04bd0a89f6e9d0c4e1133fb03..24986590cb028b25a9b2ff283800f6dd6677553e 100644
(file)
--- 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