This commit is contained in:
Yami Odymel 2023-03-09 19:05:51 +08:00
parent d34c3cbab3
commit 67dc496f6f
No known key found for this signature in database
GPG Key ID: 68E469836934DB36
4 changed files with 1 additions and 1 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -83,7 +83,7 @@ func getBody(username string) string {
if len(errs) > 0 {
log.Println(color.Colorize(color.Red, errs[0].Error()))
}
if resp.StatusCode != 200 {
if resp == nil || resp.StatusCode != 200 {
return ""
}
return body