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

fix miss-spell & run gofmt -s

This commit is contained in:
karitham 2021-02-02 22:07:30 +01:00
parent f3c95c504a
commit 04dce61a01
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ package notify
// E.g for telegram it sends the message to the specified group chat.
//
// The AddReceivers takes one or many strings and
// adds these to the list of destinations for recieving messages
// adds these to the list of destinations for receiving messages
// e.g. slack channels, telegram chats, email addresses.
type Notifier interface {
Send(string, string) error

View File

@ -18,7 +18,7 @@ type SMS struct {
// (https://help.pushbullet.com/articles/how-do-i-send-text-messages-from-my-computer/).
// For more information about Pushbullet api token:
// -> https://docs.pushbullet.com/#api-overview
func NewSMS(apiToken string, deviceNickname string) (*SMS, error) {
func NewSMS(apiToken, deviceNickname string) (*SMS, error) {
client := pushbullet.New(apiToken)
dev, err := client.Device(deviceNickname)