1
0
mirror of https://github.com/Mrs4s/go-cqhttp.git synced 2025-05-05 03:23:49 +08:00

Move isFastStart outside

This commit is contained in:
sam01101 2021-01-29 15:16:31 +08:00 committed by GitHub
parent ccee8ac77a
commit 96a036201d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,6 +36,7 @@ import (
var json = jsoniter.ConfigCompatibleWithStandardLibrary var json = jsoniter.ConfigCompatibleWithStandardLibrary
var conf *global.JSONConfig var conf *global.JSONConfig
var isFastStart = false
func init() { func init() {
if global.PathExists("cqhttp.json") { if global.PathExists("cqhttp.json") {
@ -115,7 +116,6 @@ func init() {
func main() { func main() {
var byteKey []byte var byteKey []byte
var isFastStart = false
arg := os.Args arg := os.Args
if len(arg) > 1 { if len(arg) > 1 {
for i := range arg { for i := range arg {