diff --git a/main.go b/main.go index 06f56a9..15de9d6 100644 --- a/main.go +++ b/main.go @@ -96,7 +96,7 @@ func main() { if cfg.SlackWebhookURL == "" { fmt.Println("No slack_webhook_url configured. Reporting bugs to slack is disabled.") } else { - slack = NewSlackClient(cfg.SlackWebhookURL) + slack = newSlackClient(cfg.SlackWebhookURL) } apiPrefix := cfg.APIPrefix diff --git a/slack.go b/slack.go index 141a307..5121f3f 100644 --- a/slack.go +++ b/slack.go @@ -12,7 +12,7 @@ type slackClient struct { face string } -func NewSlackClient(webHook string) *slackClient { +func newSlackClient(webHook string) *slackClient { return &slackClient{ webHook: webHook, name: "Notifier",