summaryrefslogtreecommitdiff
path: root/lisp/json.el
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2015-10-27 20:19:51 -0400
committerStefan Monnier <monnier@iro.umontreal.ca>2015-10-27 20:19:51 -0400
commit449e351b1cc0cd9e3bac1ade36eb12b226fbed76 (patch)
tree2bb674f929a8877ceca47284906a047af5ab2a03 /lisp/json.el
parent4eb1e7f96b6c3758c321aed7523502089a8ede74 (diff)
downloademacs-449e351b1cc0cd9e3bac1ade36eb12b226fbed76.tar.gz
* lisp/json.el (json-new-object): Optimize trivial `list' call
Diffstat (limited to 'lisp/json.el')
-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'."
(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.