diff --git a/service/mattermost/mattermost.go b/service/mattermost/mattermost.go index 8d41342..64ee1da 100644 --- a/service/mattermost/mattermost.go +++ b/service/mattermost/mattermost.go @@ -54,9 +54,7 @@ type HTTPClient interface { Do(req *http.Request) (*http.Response, error) } -var ( - Client HTTPClient -) +var Client HTTPClient func initialize() { Client = &http.Client{ diff --git a/service/zulip/zulip.go b/service/zulip/zulip.go index cb909a0..87a20ef 100644 --- a/service/zulip/zulip.go +++ b/service/zulip/zulip.go @@ -39,9 +39,7 @@ type HTTPClient interface { Do(req *http.Request) (*http.Response, error) } -var ( - Client HTTPClient -) +var Client HTTPClient func initialize() { Client = &http.Client{