From 177ba9d8c2b1d86301f0bf3e0714710fe3c40af4 Mon Sep 17 00:00:00 2001 From: Mrs4s Date: Tue, 21 Jun 2022 21:29:41 +0800 Subject: [PATCH] make lint happy --- cmd/gocq/login.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/gocq/login.go b/cmd/gocq/login.go index 8f72712fd..20c10e140 100644 --- a/cmd/gocq/login.go +++ b/cmd/gocq/login.go @@ -222,7 +222,7 @@ func sliderCaptchaProcessor(u string) string { id := utils.RandomString(8) log.Warnf("请前往该地址验证 -> %v", strings.ReplaceAll(u, "https://ssl.captcha.qq.com/template/wireless_mqq_captcha.html?", fmt.Sprintf("https://captcha.go-cqhttp.org/captcha?id=%v&", id))) start := time.Now() - for time.Now().Sub(start).Minutes() < 2 { + for time.Since(start).Minutes() < 2 { time.Sleep(time.Second) data, err := global.GetBytes("https://captcha.go-cqhttp.org/captcha/ticket?id=" + id) if err != nil {