From 790e6586b4a67900ae26096d9c9f0556ccd8e907 Mon Sep 17 00:00:00 2001 From: Richard Lewis Date: Tue, 21 Feb 2017 11:57:25 +0000 Subject: [PATCH] Improve string formatting --- .../matrix-org/go-neb/services/imgur/imgur_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/github.com/matrix-org/go-neb/services/imgur/imgur_test.go b/src/github.com/matrix-org/go-neb/services/imgur/imgur_test.go index 14a1f4a..9103199 100644 --- a/src/github.com/matrix-org/go-neb/services/imgur/imgur_test.go +++ b/src/github.com/matrix-org/go-neb/services/imgur/imgur_test.go @@ -80,9 +80,9 @@ func TestCommand(t *testing.T) { // Create the imgur service srv, err := types.CreateService("id", ServiceType, "@imgurbot:hyrule", []byte( - `{ - "client_id":"`+clientID+`" - }`, + fmt.Sprintf(`{ + "client_id":"%s" + }`, clientID), )) if err != nil { t.Fatal("Failed to create imgur service: ", err)