Skip to content

Commit

Permalink
adjust pointer in object
Browse files Browse the repository at this point in the history
  • Loading branch information
edmarSoaress authored and eltinMeli committed Feb 9, 2024
1 parent 034c26d commit 9b51325
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/user/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ func (c *client) Get(ctx context.Context) (*Response, error) {
return nil, err
}

var formatted Response
var formatted *Response
if err := json.Unmarshal(res, &formatted); err != nil {
return nil, err
}

return &formatted, nil
return formatted, nil
}

0 comments on commit 9b51325

Please sign in to comment.