diff --git a/notify.go b/notify.go index 151fdcd..d9497e6 100644 --- a/notify.go +++ b/notify.go @@ -15,8 +15,7 @@ type Notify struct { // ErrSendNotification signals that the notifier failed to send a notification. var ErrSendNotification = errors.New("send notification") -// New returns a new instance of Notify. Defaulting to being not disabled and using the pseudo notification -// service under the hood. +// New returns a new instance of Notify. Defaulting to being not disabled func New() *Notify { notifier := &Notify{ Disabled: defaultDisabled, diff --git a/service/telegram/telegram.go b/service/telegram/telegram.go index 841c8f0..e20d401 100644 --- a/service/telegram/telegram.go +++ b/service/telegram/telegram.go @@ -36,7 +36,8 @@ func New(apiToken string) (*Telegram, error) { // a given message to all those chats. func (t *Telegram) AddReceivers(chatIDs ...string) { for _, v := range chatIDs { - if chatID, err := strconv.ParseInt(v, 10, 64); err != nil { + chatID, err := strconv.ParseInt(v, 10, 64) + if err != nil { t.chatIDs = append(t.chatIDs, chatID) } } diff --git a/use.go b/use.go index 5e9110c..0bb0daf 100644 --- a/use.go +++ b/use.go @@ -1,7 +1,6 @@ package notify -// useService adds a given service to the notifiers services list. If the list still contains -// a pseudo service we remove it before adding the 'real' service. +// useService adds a given service to the notifiers services list. func (n *Notify) useService(service Notifier) { if service == nil { return