From 3a3d99dcafe008a1df335f1e77d4e0f8a536aab1 Mon Sep 17 00:00:00 2001 From: bluewolfali Date: Sat, 23 Mar 2024 05:19:54 +0900 Subject: [PATCH] Fix nil map assignment error --- social.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/social.go b/social.go index 5c0c403..8ac5ff1 100644 --- a/social.go +++ b/social.go @@ -341,7 +341,7 @@ func (call *GetFriendshipStatusCall) WithContext(ctx context.Context) *GetFriend // Do method func (call *GetFriendshipStatusCall) Do() (*GetFriendshipStatusResponse, error) { - var urlQuery url.Values + urlQuery := url.Values{} urlQuery.Set("access_token", call.accessToken) res, err := call.c.getHeaderAuth(call.ctx, APIEndpointGetFriendshipStratus, urlQuery) if res != nil && res.Body != nil {