From 06ef97a0802de5facf1877137ab12a41051c30c8 Mon Sep 17 00:00:00 2001 From: Yang Luo Date: Tue, 6 Feb 2024 16:43:16 +0800 Subject: [PATCH] feat: can delete the whole SigninMethodTable --- object/user_avatar.go | 6 +----- web/src/table/SigninMethodTable.js | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/object/user_avatar.go b/object/user_avatar.go index b55a644e..d7436a61 100644 --- a/object/user_avatar.go +++ b/object/user_avatar.go @@ -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 diff --git a/web/src/table/SigninMethodTable.js b/web/src/table/SigninMethodTable.js index 9258927d..aae17ba7 100644 --- a/web/src/table/SigninMethodTable.js +++ b/web/src/table/SigninMethodTable.js @@ -163,7 +163,7 @@ class SigninMethodTable extends React.Component {