branch: externals/graphql commit fcc32d3d71b6a0bb13180aef0f67bd8d4f3ae72c Author: Sean Allred <c...@seanallred.com> Commit: Sean Allred <c...@seanallred.com>
Simplify handling of spacing optional elements --- graphql.el | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/graphql.el b/graphql.el index ba1995139a..3bdffe17cf 100644 --- a/graphql.el +++ b/graphql.el @@ -86,11 +86,10 @@ ;; Format arguments "key:value, ..." (format "(%s)" (mapconcat #'graphql--encode-parameter-pair arguments ","))) - (when (or name rest) " ") (when name - (format "%S ") name) + (format " %S") name) (when rest - (format "{ %s }" + (format " { %s }" (if (listp rest) (mapconcat #'graphql--encode rest " ") (graphql--encode rest))))))))))