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:
commit
48bbe3d826
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user