From 534ea7529ce083598084f2c314740d5d54232da9 Mon Sep 17 00:00:00 2001 From: skyrover <42135781+skyrover001@users.noreply.github.com> Date: Tue, 22 Apr 2025 18:11:12 +0800 Subject: [PATCH] Update sdk/api/channel.go Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- sdk/api/channel.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sdk/api/channel.go b/sdk/api/channel.go index 574691c0..62dc5743 100644 --- a/sdk/api/channel.go +++ b/sdk/api/channel.go @@ -162,8 +162,7 @@ func (channel *Channel) Get(client *OneClient) error { if err := json.NewDecoder(resp.Body).Decode(&data); err != nil { return err } - channel = data.Data.(*Channel) - return nil + *channel = *(data.Data.(*Channel)) } // test channel