mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2025-12-24 02:10:06 +08:00
💩👌 make lint happy
This commit is contained in:
parent
480523ff27
commit
1597ba7128
@ -13,7 +13,6 @@ import (
|
|||||||
sql "github.com/FloatTech/sqlite"
|
sql "github.com/FloatTech/sqlite"
|
||||||
control "github.com/FloatTech/zbputils/control"
|
control "github.com/FloatTech/zbputils/control"
|
||||||
"github.com/FloatTech/zbputils/ctxext"
|
"github.com/FloatTech/zbputils/ctxext"
|
||||||
"github.com/FloatTech/zbputils/file"
|
|
||||||
fileutil "github.com/FloatTech/zbputils/file"
|
fileutil "github.com/FloatTech/zbputils/file"
|
||||||
imagepool "github.com/FloatTech/zbputils/img/pool"
|
imagepool "github.com/FloatTech/zbputils/img/pool"
|
||||||
"github.com/FloatTech/zbputils/math"
|
"github.com/FloatTech/zbputils/math"
|
||||||
@ -172,7 +171,7 @@ func (p *imgpool) push(ctx *zero.Ctx, imgtype string, illust *pixiv.Illust) {
|
|||||||
if ctxext.SendToSelf(ctx)(msg) == 0 {
|
if ctxext.SendToSelf(ctx)(msg) == 0 {
|
||||||
msg = msg.Add("cache", "0")
|
msg = msg.Add("cache", "0")
|
||||||
if ctxext.SendToSelf(ctx)(msg) == 0 {
|
if ctxext.SendToSelf(ctx)(msg) == 0 {
|
||||||
err = file.DownloadTo(m.String(), f, true)
|
err = fileutil.DownloadTo(m.String(), f, true)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
ctx.SendChain(message.Text("ERROR: ", err))
|
ctx.SendChain(message.Text("ERROR: ", err))
|
||||||
return
|
return
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user