From fee20f0aeb51113a995c8fe21ff1e34f4244eb8f Mon Sep 17 00:00:00 2001 From: Shulhan Date: Sat, 25 Feb 2023 19:36:18 +0700 Subject: all: access embedded field or methods using the type name This is for clarity in the code, better to be explicit by typing where the field or methods come from. --- api/slack/webhook_client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'api') diff --git a/api/slack/webhook_client.go b/api/slack/webhook_client.go index 166b5189..abff49bd 100644 --- a/api/slack/webhook_client.go +++ b/api/slack/webhook_client.go @@ -51,7 +51,7 @@ func (wcl *WebhookClient) Post(msg *Message) (err error) { if wcl.Client == nil { return nil } - httpRes, resBody, err := wcl.PostJSON(wcl.webhookPath, nil, msg) + httpRes, resBody, err := wcl.Client.PostJSON(wcl.webhookPath, nil, msg) if err != nil { return fmt.Errorf("WebhookClient.Post: %w", err) } -- cgit v1.3