From d7313068fbb95829175fe108352b7b1e99e6fe9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Mur=C3=A9?= Date: Thu, 19 Jul 2018 17:58:45 +0200 Subject: [PATCH] small cleaning --- commands/new.go | 2 +- graphql/handler.go | 2 +- graphql/schema.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/commands/new.go b/commands/new.go index fde944e9c51e2cd50f73537852fb5c4b63a13222..09369fe46166547316219fc306f2ed741a15517f 100644 --- a/commands/new.go +++ b/commands/new.go @@ -55,7 +55,7 @@ func runNewBug(cmd *cobra.Command, args []string) error { err = newBug.Commit(repo) - fmt.Println(newBug.HumanId()) + fmt.Printf("%s created\n", newBug.HumanId()) return err diff --git a/graphql/handler.go b/graphql/handler.go index 4843fff9527a3917e04d223db5b5df0abc9e802e..7dbb7a0f218aee2132b8fb881a044d8dd4014a94 100644 --- a/graphql/handler.go +++ b/graphql/handler.go @@ -3,7 +3,7 @@ package graphql import "github.com/graphql-go/handler" func NewHandler() (*handler.Handler, error) { - schema, err := graphqlSchema() + schema, err := newGraphqlSchema() if err != nil { return nil, err diff --git a/graphql/schema.go b/graphql/schema.go index f8fb976852bd2fdd1719ae7f0255adf83ccbaa0b..e929fb44f74597aa8ace09d4dc867ef7ddd09428 100644 --- a/graphql/schema.go +++ b/graphql/schema.go @@ -2,7 +2,7 @@ package graphql import "github.com/graphql-go/graphql" -func graphqlSchema() (graphql.Schema, error) { +func newGraphqlSchema() (graphql.Schema, error) { rootQuery := graphql.ObjectConfig{ Name: "RootQuery",