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:
parent
8d6978a60d
commit
8773e19d2c
8
main.go
8
main.go
@ -138,14 +138,8 @@ func main() {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
log.Errorf("遇到错误: %v", err)
|
log.Errorf("遇到错误: %v", err)
|
||||||
time.Sleep(time.Second * 5)
|
time.Sleep(time.Second * 5)
|
||||||
return
|
|
||||||
}
|
}
|
||||||
if runtime.GOOS == "windows" {
|
return
|
||||||
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") {
|
if (conf.Account.Uin == 0 || (conf.Account.Password == "" && !conf.Account.Encrypt)) && !global.PathExists("session.token") {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user