This commit is contained in:
Richard van der Hoff 2020-06-04 12:52:39 +01:00
parent feb1af9686
commit 37b7b7158f
2 changed files with 2 additions and 2 deletions

View File

@ -96,7 +96,7 @@ func main() {
if cfg.SlackWebhookURL == "" { if cfg.SlackWebhookURL == "" {
fmt.Println("No slack_webhook_url configured. Reporting bugs to slack is disabled.") fmt.Println("No slack_webhook_url configured. Reporting bugs to slack is disabled.")
} else { } else {
slack = NewSlackClient(cfg.SlackWebhookURL) slack = newSlackClient(cfg.SlackWebhookURL)
} }
apiPrefix := cfg.APIPrefix apiPrefix := cfg.APIPrefix

View File

@ -12,7 +12,7 @@ type slackClient struct {
face string face string
} }
func NewSlackClient(webHook string) *slackClient { func newSlackClient(webHook string) *slackClient {
return &slackClient{ return &slackClient{
webHook: webHook, webHook: webHook,
name: "Notifier", name: "Notifier",