mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2025-12-18 20:50:12 +08:00
fix: make lint&ci happy
This commit is contained in:
parent
883adc621c
commit
bc20d95bd1
@ -27,8 +27,10 @@ func main() {
|
|||||||
fo.Close()
|
fo.Close()
|
||||||
|
|
||||||
regf := path.Join(*root, "custom/register.go")
|
regf := path.Join(*root, "custom/register.go")
|
||||||
|
tgtf := path.Join(*root, "abineundo/ref/custom/register.go")
|
||||||
if _, err := os.Stat(regf); err != nil {
|
if _, err := os.Stat(regf); err != nil {
|
||||||
if os.IsNotExist(err) {
|
if os.IsNotExist(err) {
|
||||||
|
_ = os.WriteFile(tgtf, []byte("package custom\n"), 0644)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
panic(err)
|
panic(err)
|
||||||
@ -38,7 +40,7 @@ func main() {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
fo, err = os.Create(path.Join(*root, "abineundo/ref/custom/register.go"))
|
fo, err = os.Create(tgtf)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user