aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2015-10-27 20:19:51 -0400
committerStefan Monnier2015-10-27 20:19:51 -0400
commit449e351b1cc0cd9e3bac1ade36eb12b226fbed76 (patch)
tree2bb674f929a8877ceca47284906a047af5ab2a03
parent4eb1e7f96b6c3758c321aed7523502089a8ede74 (diff)
downloademacs-449e351b1cc0cd9e3bac1ade36eb12b226fbed76.tar.gz
emacs-449e351b1cc0cd9e3bac1ade36eb12b226fbed76.zip
* lisp/json.el (json-new-object): Optimize trivial `list' call
-rw-r--r--lisp/json.el2
1 files changed, 1 insertions, 1 deletions
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'."
358 (cond ((eq json-object-type 'hash-table) 358 (cond ((eq json-object-type 'hash-table)
359 (make-hash-table :test 'equal)) 359 (make-hash-table :test 'equal))
360 (t 360 (t
361 (list)))) 361 ())))
362 362
363(defun json-add-to-object (object key value) 363(defun json-add-to-object (object key value)
364 "Add a new KEY -> VALUE association to OBJECT. 364 "Add a new KEY -> VALUE association to OBJECT.