Skip to content

Commit d506d50

Browse files
committed
fix error handling
1 parent 8c28d9b commit d506d50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clientv2/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ func (c *Client) unmarshal(data []byte, res any) error {
437437
}
438438

439439
var err error
440-
if resp.Errors != nil && len(resp.Errors) > 0 {
440+
if len(resp.Errors) > 0 {
441441
// try to parse standard graphql error
442442
err = &GqlErrorList{}
443443
if e := json.Unmarshal(data, err); e != nil {

0 commit comments

Comments
 (0)