From: Stefan Monnier Date: Wed, 28 Oct 2015 00:19:51 +0000 (-0400) Subject: * lisp/json.el (json-new-object): Optimize trivial `list' call X-Git-Tag: emacs-25.0.90~1003^2^2~7 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=449e351b1cc0cd9e3bac1ade36eb12b226fbed76;p=emacs.git * lisp/json.el (json-new-object): Optimize trivial `list' call --- diff --git a/lisp/json.el b/lisp/json.el index e2c7cc77222..b23d12ad0ed 100644 --- a/lisp/json.el +++ b/lisp/json.el @@ -358,7 +358,7 @@ Please see the documentation of `json-object-type'." (cond ((eq json-object-type 'hash-table) (make-hash-table :test 'equal)) (t - (list)))) + ()))) (defun json-add-to-object (object key value) "Add a new KEY -> VALUE association to OBJECT.