Skip to content
This repository has been archived by the owner on Nov 5, 2022. It is now read-only.

Commit

Permalink
fix delete error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
mazrean committed Mar 27, 2022
1 parent 275c1e8 commit a0a9b95
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rules/rules.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ func (t *rules) Delete(req DeleteRulesRequest, dryRun bool) (*TwitterRuleRespons

res, err := t.httpClient.AddRules(t.addDryRun(dryRun), string(body))

if err != nil {
return nil, err
}

defer res.Body.Close()
data := new(TwitterRuleResponse)
Expand Down

0 comments on commit a0a9b95

Please sign in to comment.