mirror of
https://github.com/Mrs4s/go-cqhttp.git
synced 2025-05-05 19:43:49 +08:00
fix code style.
This commit is contained in:
parent
cccf454500
commit
1aed38ac18
@ -134,7 +134,7 @@ func Get() *Config {
|
|||||||
generateConfig()
|
generateConfig()
|
||||||
os.Exit(0)
|
os.Exit(0)
|
||||||
}
|
}
|
||||||
defer file.Close()
|
defer func() { _ = file.Close() }()
|
||||||
config = &Config{}
|
config = &Config{}
|
||||||
if err = yaml.NewDecoder(file).Decode(config); err != nil {
|
if err = yaml.NewDecoder(file).Decode(config); err != nil {
|
||||||
log.Fatal("配置文件不合法!", err)
|
log.Fatal("配置文件不合法!", err)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user