Skip to content

Commit

Permalink
Merge pull request #79 from lowesoftware/no-options-by-ref
Browse files Browse the repository at this point in the history
Fix inconsistency with some REST Options objects passed by reference …
  • Loading branch information
mimato authored Jul 21, 2017
2 parents baff0ec + b31f413 commit 452e5ee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions escalation_policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ type GetEscalationPolicyOptions struct {
}

// GetEscalationPolicy gets information about an existing escalation policy and its rules.
func (c *Client) GetEscalationPolicy(id string, o *GetEscalationPolicyOptions) (*EscalationPolicy, error) {
func (c *Client) GetEscalationPolicy(id string, o GetEscalationPolicyOptions) (*EscalationPolicy, error) {
v, err := query.Values(o)
if err != nil {
return nil, err
Expand All @@ -117,7 +117,7 @@ func (c *Client) CreateEscalationRule(escID string, e EscalationRule) (*Escalati
}

// GetEscalationRule gets information about an existing escalation rule.
func (c *Client) GetEscalationRule(escID string, id string, o *GetEscalationRuleOptions) (*EscalationRule, error) {
func (c *Client) GetEscalationRule(escID string, id string, o GetEscalationRuleOptions) (*EscalationRule, error) {
v, err := query.Values(o)
if err != nil {
return nil, err
Expand Down
2 changes: 1 addition & 1 deletion service.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ type GetServiceOptions struct {
}

// GetService gets details about an existing service.
func (c *Client) GetService(id string, o *GetServiceOptions) (*Service, error) {
func (c *Client) GetService(id string, o GetServiceOptions) (*Service, error) {
v, err := query.Values(o)
resp, err := c.get("/services/" + id + "?" + v.Encode())
return getServiceFromResponse(c, resp, err)
Expand Down

0 comments on commit 452e5ee

Please sign in to comment.