From 1c9f24b2e7f75bb1134318a6d805e3ab3f109ba5 Mon Sep 17 00:00:00 2001 From: dqn Date: Thu, 6 Aug 2020 13:55:17 +0900 Subject: [PATCH] remove triming space for schemaDefault --- cmd/init.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cmd/init.go b/cmd/init.go index 121805af53..ad95a5cec5 100644 --- a/cmd/init.go +++ b/cmd/init.go @@ -7,7 +7,6 @@ import ( "io/ioutil" "os" "path/filepath" - "strings" "github.com/99designs/gqlgen/api" "github.com/99designs/gqlgen/codegen/config" @@ -192,7 +191,7 @@ func initSchema(schemaFilename string) error { return fmt.Errorf("unable to create schema dir: " + err.Error()) } - if err = ioutil.WriteFile(schemaFilename, []byte(strings.TrimSpace(schemaDefault)), 0644); err != nil { + if err = ioutil.WriteFile(schemaFilename, []byte(schemaDefault), 0644); err != nil { return fmt.Errorf("unable to write schema file: " + err.Error()) } return nil