branch: elpa/graphql-mode
commit a37919f2ab4414a35b5ba2da6090116df326d334
Author: Jonas Bernoulli <[email protected]>
Commit: Jonas Bernoulli <[email protected]>

    graphql--query: Remove unused lexical variable
    
    Remove the unused lexical variable BODY.  Also remove the
    lexical variable URL and just use `graphql-url' directly.
---
 graphql-mode.el | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/graphql-mode.el b/graphql-mode.el
index 5b7d65a635..485e7a07fa 100644
--- a/graphql-mode.el
+++ b/graphql-mode.el
@@ -86,10 +86,8 @@ The query is sent as a HTTP POST request to the URL at
 mutation or subscription).  OPERATION is a name for the
 operation.  VARIABLES is the JSON string that specifies the values
 of the variables used in the query."
-  (let* ((body (graphql-encode-json query operation variables))
-         (url graphql-url))
-    (with-temp-buffer
-      (graphql-post-request url query operation variables))))
+  (with-temp-buffer
+    (graphql-post-request graphql-url query operation variables)))
 
 (defun graphql-post-request (url query &optional operation variables)
   "Make post request to graphql server with url and body.

Reply via email to