mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2026-01-06 04:09:00 +08:00
✏️ 修复 panic
This commit is contained in:
parent
6bc1e407d5
commit
4df30a56a3
@ -29,8 +29,12 @@ var (
|
|||||||
func init() {
|
func init() {
|
||||||
go func() {
|
go func() {
|
||||||
time.Sleep(time.Second)
|
time.Sleep(time.Second)
|
||||||
|
err := os.MkdirAll(datapath, 0755)
|
||||||
|
if err != nil {
|
||||||
|
panic(err)
|
||||||
|
}
|
||||||
area := make(rate, 226)
|
area := make(rate, 226)
|
||||||
err := load(&area)
|
err = load(&area)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user