From 80e5053c9633954e0e334f4605b8affa866e87ad Mon Sep 17 00:00:00 2001 From: KrishanBhalla Date: Sun, 31 Jan 2021 12:17:32 +0000 Subject: [PATCH] Update service/twitter/twitter.go MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Niko Köser --- service/twitter/twitter.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/service/twitter/twitter.go b/service/twitter/twitter.go index 0685e6f..574a9af 100644 --- a/service/twitter/twitter.go +++ b/service/twitter/twitter.go @@ -91,7 +91,8 @@ func (t Twitter) Send(subject, message string) error { Event: directMessageEvent, } - if _, _, err := t.client.DirectMessages.EventsNew(directMessageParams); err != nil { + _, _, err := t.client.DirectMessages.EventsNew(directMessageParams) + if err != nil { return errors.Wrapf(err, "failed to send direct message to twitter ID '%d'", twitterID) } }