diff --git a/.gitignore b/.gitignore index bd9730001..dbcb620b4 100644 Binary files a/.gitignore and b/.gitignore differ diff --git a/pkg/channels/feishu/feishu_64.go b/pkg/channels/feishu/feishu_64.go index d812d8f65..6bffc9e29 100644 --- a/pkg/channels/feishu/feishu_64.go +++ b/pkg/channels/feishu/feishu_64.go @@ -1013,9 +1013,9 @@ func (c *FeishuChannel) storeResourceFile( }) return "" } - if err := out.Close(); err != nil { + if closeErr := out.Close(); closeErr != nil { logger.ErrorCF("feishu", "Failed to close downloaded resource file", map[string]any{ - "error": err.Error(), + "error": closeErr.Error(), }) os.Remove(localPath) return ""