1
0
mirror of https://github.com/silenceper/wechat.git synced 2026-02-22 05:12:26 +08:00

feat: optimized-error-handling&remove unused constant

This commit is contained in:
markwang
2024-03-15 14:38:10 +08:00
parent 179704187b
commit 6053598a03
19 changed files with 33 additions and 251 deletions

View File

@@ -44,9 +44,6 @@ func (basic *Basic) Long2ShortURL(longURL string) (shortURL string, err error) {
if err != nil {
return
}
if err = util.DecodeWithError(responseBytes, resp, long2shortAction); err != nil {
return
}
shortURL = resp.ShortURL
return
err = util.DecodeWithError(responseBytes, resp, long2shortAction)
return resp.ShortURL, err
}