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

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

[elpa] externals/graphql 9d4179cd4a 04/56: Simplify handling of fields


From: ELPA Syncer
Subject: [elpa] externals/graphql 9d4179cd4a 04/56: Simplify handling of fields
Date: Sat, 29 Oct 2022 13:57:52 -0400 (EDT)

branch: externals/graphql
commit 9d4179cd4a5c410ebca9ac836f34bb6a3f5ca5b4
Author: Sean Allred <code@seanallred.com>
Commit: Sean Allred <code@seanallred.com>

    Simplify handling of fields
    
    `rest' here will always satisfy listp since it's the cdr of `graph'.
---
 graphql.el | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/graphql.el b/graphql.el
index 3bdffe17cf..aaca889459 100644
--- a/graphql.el
+++ b/graphql.el
@@ -90,9 +90,7 @@
               (format " %S") name)
             (when rest
               (format " { %s }"
-                      (if (listp rest)
-                          (mapconcat #'graphql--encode rest " ")
-                        (graphql--encode rest))))))))))
+                      (mapconcat #'graphql--encode rest " ")))))))))
 
 (defun graphql-encode (g)
   "Encode G as a GraphQL string."



reply via email to

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