1
0
mirror of https://github.com/nikoksr/notify.git synced 2025-02-09 13:13:44 +02:00

Merge pull request #35 from nikoksr/refactor/apply-golangci-lint-changes

refactor(lint): remove unnecessary new-lines
This commit is contained in:
Niko Köser 2021-02-08 22:57:42 +01:00 committed by GitHub
commit fd894832c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -69,13 +69,11 @@ func (t *Twitter) AddReceivers(twitterIDs ...string) {
// Send takes a message subject and a message body and sends them to all previously set twitterIDs as a DM.
// See https://developer.twitter.com/en/docs/twitter-api/v1/direct-messages/sending-and-receiving/api-reference/new-event
func (t Twitter) Send(subject, message string) error {
directMessageData := &twitter.DirectMessageData{
Text: subject + "\n" + message,
}
for _, twitterID := range t.twitterIDs {
directMessageTarget := &twitter.DirectMessageTarget{
RecipientID: twitterID,
}