Skip to content

Commit

Permalink
cleaned up example to use MustParseSchema
Browse files Browse the repository at this point in the history
  • Loading branch information
kmarquardsen authored and neelance committed Sep 8, 2017
1 parent 52080e1 commit 10eb949
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions example/starwars/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,7 @@ import (
var schema *graphql.Schema

func init() {
var err error
schema, err = graphql.ParseSchema(starwars.Schema, &starwars.Resolver{})
if err != nil {
panic(err)
}
schema = graphql.MustParseSchema(starwars.Schema, &starwars.Resolver{})
}

func main() {
Expand Down

0 comments on commit 10eb949

Please sign in to comment.