Remove unnecessary dependency on seq library
* lisp/json.el: Remove require declaration. (json-encode-array): Just use length and /=.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user