feat: can delete the whole SigninMethodTable

This commit is contained in:
Yang Luo
2024-02-06 16:43:16 +08:00
parent 167c1b0f1b
commit 06ef97a080
2 changed files with 2 additions and 6 deletions

View File

@ -41,11 +41,7 @@ func downloadImage(client *http.Client, url string) (*bytes.Buffer, string, erro
if resp.StatusCode != http.StatusOK {
fmt.Printf("downloadImage() error for url [%s]: %s\n", url, resp.Status)
if resp.StatusCode == 404 {
return nil, "", nil
} else {
return nil, "", fmt.Errorf("failed to download gravatar image: %s", resp.Status)
}
return nil, "", nil
}
// Get the content type and determine the file extension