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:
commit
fd894832c7
@ -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,
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user