mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2026-02-06 15:20:22 +00:00
💩👌 make lint happy
This commit is contained in:
@@ -143,8 +143,13 @@ func init() { // 插件主体
|
||||
} else {
|
||||
msg = append(msg, message.Text("也许是这个?"))
|
||||
}
|
||||
if err == nil && resp.StatusCode == http.StatusOK {
|
||||
msg = append(msg, message.Image(result.Header.Thumbnail))
|
||||
if err == nil {
|
||||
_ = resp.Body.Close()
|
||||
if resp.StatusCode == http.StatusOK {
|
||||
msg = append(msg, message.Image(result.Header.Thumbnail))
|
||||
} else {
|
||||
msg = append(msg, message.Image(pic))
|
||||
}
|
||||
} else {
|
||||
msg = append(msg, message.Image(pic))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user