refactor: clean code

This commit is contained in:
Fu Diwei
2025-05-16 13:56:45 +08:00
parent dd2087b101
commit b15bf8ef98
17 changed files with 32 additions and 32 deletions

View File

@@ -16,7 +16,7 @@ func (c *Client) getCookie() error {
resp := &signinResponse{}
if err := json.Unmarshal(res.Body(), &resp); err != nil {
return fmt.Errorf("upyun api error: failed to parse response: %w", err)
return fmt.Errorf("upyun api error: failed to unmarshal response: %w", err)
} else if !resp.Data.Result {
return errors.New("upyun console signin failed")
}