企业微信-移除可省略的错误判断 (#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
@@ -86,10 +86,8 @@ func (r *Client) GetInvoiceInfo(req *GetInvoiceInfoRequest) (*GetInvoiceInfoResp
return nil, err
}
result := &GetInvoiceInfoResponse{}
if err = util.DecodeWithError(response, result, "GetInvoiceInfo"); err != nil {
return nil, err
}
return result, nil
err = util.DecodeWithError(response, result, "GetInvoiceInfo")
return result, err
}
// UpdateInvoiceStatusRequest 更新发票状态请求
@@ -184,8 +182,6 @@ func (r *Client) GetInvoiceInfoBatch(req *GetInvoiceInfoBatchRequest) (*GetInvoi
return nil, err
}
result := &GetInvoiceInfoBatchResponse{}
if err = util.DecodeWithError(response, result, "GetInvoiceInfoBatch"); err != nil {
return nil, err
}
return result, nil
err = util.DecodeWithError(response, result, "GetInvoiceInfoBatch")
return result, err
}