Remove unnecessary dependency on seq library
* lisp/json.el: Remove require declaration. (json-encode-array): Just use length and /=.
This commit is contained in:
parent
1fa1354964
commit
d3d60ab272
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue