1
0
mirror of https://github.com/Mrs4s/go-cqhttp.git synced 2025-05-04 19:17:37 +08:00

style: remove useless code

This commit is contained in:
Ink33 2021-08-22 15:40:06 +08:00
parent 8d6978a60d
commit 8773e19d2c
No known key found for this signature in database
GPG Key ID: 5D8B1D036EFB0D2E

View File

@ -138,15 +138,9 @@ func main() {
if err != nil {
log.Errorf("遇到错误: %v", err)
time.Sleep(time.Second * 5)
return
}
if runtime.GOOS == "windows" {
return
}
log.Warning("警告: 强烈不推荐通过双击直接运行本程序, 这将导致一些非预料的后果.")
log.Warning("将等待10s后启动")
time.Sleep(time.Second * 10)
}
if (conf.Account.Uin == 0 || (conf.Account.Password == "" && !conf.Account.Encrypt)) && !global.PathExists("session.token") {
log.Warn("账号密码未配置, 将使用二维码登录.")