From d3d60ab2723fe4b3fa15f4d593319d0d08892cb0 Mon Sep 17 00:00:00 2001 From: Mark Oteiza Date: Sun, 3 Jan 2021 16:58:09 -0500 Subject: [PATCH] Remove unnecessary dependency on seq library * lisp/json.el: Remove require declaration. (json-encode-array): Just use length and /=. --- lisp/json.el | 3 +-- 1 file changed, 1 insertion(+), 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 -- 2.39.5