emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 449e351: * lisp/json.el (json-new-object): Optimize


From: Stefan Monnier
Subject: [Emacs-diffs] master 449e351: * lisp/json.el (json-new-object): Optimize trivial `list' call
Date: Wed, 28 Oct 2015 00:19:54 +0000

branch: master
commit 449e351b1cc0cd9e3bac1ade36eb12b226fbed76
Author: Stefan Monnier <address@hidden>
Commit: Stefan Monnier <address@hidden>

    * lisp/json.el (json-new-object): Optimize trivial `list' call
---
 lisp/json.el |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lisp/json.el b/lisp/json.el
index e2c7cc7..b23d12a 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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]