emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[nongnu] elpa/graphql-mode a37919f2ab 065/122: graphql--query: Remove un


From: ELPA Syncer
Subject: [nongnu] elpa/graphql-mode a37919f2ab 065/122: graphql--query: Remove unused lexical variable
Date: Sat, 29 Jan 2022 08:03:33 -0500 (EST)

branch: elpa/graphql-mode
commit a37919f2ab4414a35b5ba2da6090116df326d334
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>

    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

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