branch: elpa/graphql-mode
commit ba5952590c80442a24b1f101c3013fc30d87af58
Merge: 0f2b4b1604 4bb868832f
Author: David Vázquez Púa <[email protected]>
Commit: GitHub <[email protected]>

    Merge pull request #22 from cbowdon/master
    
    Avoid double-encoding variables in JSON
---
 graphql-mode.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/graphql-mode.el b/graphql-mode.el
index 197867d027..0944537a6b 100644
--- a/graphql-mode.el
+++ b/graphql-mode.el
@@ -187,7 +187,7 @@ Please install it and try again."))
            (file-exists-p filename))
       (condition-case nil
           (progn (get-buffer-create (find-file-noselect filename))
-                 (json-encode (json-read-file filename)))
+                 (json-read-file filename))
         (error nil))
     nil))
 

Reply via email to