From 56a33da94a684d1e10f980302a1d8907f2ebf7cf Mon Sep 17 00:00:00 2001 From: ekzyis Date: Sun, 16 Apr 2023 20:00:13 +0200 Subject: [PATCH] Use consistent query indentation --- sn.go | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/sn.go b/sn.go index 91f7eac..77b8ac3 100644 --- a/sn.go +++ b/sn.go @@ -111,12 +111,11 @@ func PostStoryToStackerNews(story *Story) { body := GraphQLPayload{ Query: ` - mutation upsertLink($url: String!, $title: String!) { - upsertLink(url: $url, title: $title) { - id - } - } - `, + mutation upsertLink($url: String!, $title: String!) { + upsertLink(url: $url, title: $title) { + id + } + }`, Variables: map[string]interface{}{ "url": story.Url, "title": story.Title,