diff options
| author | Stefan Monnier | 2015-10-27 20:19:51 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2015-10-27 20:19:51 -0400 |
| commit | 449e351b1cc0cd9e3bac1ade36eb12b226fbed76 (patch) | |
| tree | 2bb674f929a8877ceca47284906a047af5ab2a03 | |
| parent | 4eb1e7f96b6c3758c321aed7523502089a8ede74 (diff) | |
| download | emacs-449e351b1cc0cd9e3bac1ade36eb12b226fbed76.tar.gz emacs-449e351b1cc0cd9e3bac1ade36eb12b226fbed76.zip | |
* lisp/json.el (json-new-object): Optimize trivial `list' call
| -rw-r--r-- | lisp/json.el | 2 |
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. |