1
0
mirror of https://github.com/nikoksr/notify.git synced 2024-11-28 08:39:13 +02:00

Merge pull request #10 from renanbastos93/patch-1

fix: remove error return on method new
This commit is contained in:
Niko Köser 2021-01-31 01:13:03 +01:00 committed by GitHub
commit 48bbe3d826
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,7 +14,7 @@ type Slack struct {
// New returns a new instance of a Slack notification service.
// For more information about slack api token:
// -> https://pkg.go.dev/github.com/slack-go/slack#New
func New(apiToken string) (*Slack, error) {
func New(apiToken string) *Slack {
client := slack.New(apiToken)
s := &Slack{
@ -22,7 +22,7 @@ func New(apiToken string) (*Slack, error) {
channelIDs: []string{},
}
return s, nil
return s
}
// AddReceivers takes Slack channel IDs and adds them to the internal channel ID list. The Send method will send