We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5b6b9df commit 6f2019eCopy full SHA for 6f2019e
1 file changed
plugin/score/sign_in.go
@@ -298,14 +298,13 @@ func getrank(count int) int {
298
}
299
300
func initPic(picFile string, avatarurl string) (avatar []byte, err error) {
301
- if avatarurl == "" {
302
- return
+ if avatarurl != "" {
+ avatar, err = web.GetData(avatarurl)
303
+ if err != nil {
304
+ return
305
+ }
306
307
defer process.SleepAbout1sTo2s()
- avatar, err = web.GetData(avatarurl)
- if err != nil {
308
- }
309
if file.IsExist(picFile) {
310
return
311
0 commit comments