branch: externals/graphql commit 9d4179cd4a5c410ebca9ac836f34bb6a3f5ca5b4 Author: Sean Allred <c...@seanallred.com> Commit: Sean Allred <c...@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."