企业微信-移除可省略的错误判断 (#734)

Co-authored-by: markwang <www.wang61@qq.com>
This commit is contained in:
markwangandmarkwang authored and GitHub committed 2023-10-10 19:31:23 +08:00
1 parent da5067bcb2
commit 3f1c5e7637
25 files changed
+175 -382

No files matched your search

+4 -8
View File
@@ -59,10 +59,8 @@ func (r *Client) GetCorpStatistic(req *GetCorpStatisticRequest) (*GetCorpStatist
return nil, err
}
result := &GetCorpStatisticResponse{}
if err = util.DecodeWithError(response, result, "GetCorpStatistic"); err != nil {
return nil, err
}
return result, nil
err = util.DecodeWithError(response, result, "GetCorpStatistic")
return result, err
}
// GetServicerStatisticRequest 获取「客户数据统计」接待人员明细数据请求
@@ -120,8 +118,6 @@ func (r *Client) GetServicerStatistic(req *GetServicerStatisticRequest) (*GetSer
return nil, err
}
result := &GetServicerStatisticResponse{}
if err = util.DecodeWithError(response, result, "GetServicerStatistic"); err != nil {
return nil, err
}
return result, nil
err = util.DecodeWithError(response, result, "GetServicerStatistic")
return result, err
}