feat: optimized-error-handling&remove unused constant

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

No files matched your search

+1 -6
View File
@@ -45,10 +45,5 @@ func (business *Business) GetPhoneNumber(in *GetPhoneNumberRequest) (info PhoneI
PhoneInfo PhoneInfo `json:"phone_info"`
}
err = util.DecodeWithError(response, &resp, "business.GetPhoneNumber")
if nil != err {
return
}
info = resp.PhoneInfo
return
return resp.PhoneInfo, err
}