From 0e2992e4aa4c809809ab0388ce85047d745c0e5f Mon Sep 17 00:00:00 2001 From: kha7iq Date: Mon, 17 May 2021 20:02:47 +0800 Subject: [PATCH] style: fmt code --- service/mattermost/mattermost.go | 4 +--- service/zulip/zulip.go | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) 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{