Skip to content

Commit

Permalink
fix: err var renamed
Browse files Browse the repository at this point in the history
  • Loading branch information
mojtaba-esk committed Dec 7, 2023
1 parent b764518 commit ab660e2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sdk/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,12 @@ func (c *Client) postResource(resPath string, requestBody interface{}) ([]byte,
}

func (c *Client) getServiceStatus(resPath string) (*api.MetaMessage, error) {
resp, resErr := c.getResource(resPath)
if resErr != nil {
return nil, resErr
resp, err := c.getResource(resPath)
if err != nil {
return nil, err
}
msg := &api.MetaMessage{}

msg := &api.MetaMessage{}
if err := json.Unmarshal(resp, msg); err != nil {
return nil, err
}
Expand Down

0 comments on commit ab660e2

Please sign in to comment.