Remove supefluous check

This commit is contained in:
Clément 2019-04-22 11:54:54 +01:00
parent e73220e4d6
commit 1142d34291
1 changed files with 1 additions and 6 deletions

View File

@ -61,12 +61,7 @@ func hasura(query string, variables interface{}, data interface{}) (err error) {
return errors.New(http.StatusText(resp.StatusCode))
}
gqlQuery := GraphqlQuery{Data: data}
err = json.Unmarshal(b, &gqlQuery)
if err != nil {
return
}
return
return json.Unmarshal(b, &GraphqlQuery{Data: data})
}
type User struct {