diff --git a/rules/rules.go b/rules/rules.go index 1d3ac96..3fbf45b 100644 --- a/rules/rules.go +++ b/rules/rules.go @@ -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)