Skip to content

Commit

Permalink
Now that we have nil check, remove the other guard
Browse files Browse the repository at this point in the history
  • Loading branch information
brandur committed Oct 24, 2017
1 parent 6aacada commit ce3b0b6
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions card/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,12 +148,9 @@ func (c Client) Del(id string, params *stripe.CardParams) (*stripe.Card, error)
var body *form.Values
var commonParams *stripe.Params

if params != nil {
body = &form.Values{}

form.AppendTo(body, params)
commonParams = &params.Params
}
body = &form.Values{}
form.AppendTo(body, params)
commonParams = &params.Params

card := &stripe.Card{}
var err error
Expand Down

0 comments on commit ce3b0b6

Please sign in to comment.