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

Commit

Permalink
Merge pull request #38 from mazrean/fix/delete_error_handling
Browse files Browse the repository at this point in the history
Error handling of Delete method
  • Loading branch information
Fallenstedt authored Mar 28, 2022
2 parents 275c1e8 + a0a9b95 commit 9923c6d
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 9923c6d

Please sign in to comment.