fix: make lint&ci happy

This commit is contained in:
源文雨 2025-10-01 00:35:55 +08:00
parent 883adc621c
commit bc20d95bd1

View File

@ -27,8 +27,10 @@ func main() {
fo.Close()
regf := path.Join(*root, "custom/register.go")
tgtf := path.Join(*root, "abineundo/ref/custom/register.go")
if _, err := os.Stat(regf); err != nil {
if os.IsNotExist(err) {
_ = os.WriteFile(tgtf, []byte("package custom\n"), 0644)
return
}
panic(err)
@ -38,7 +40,7 @@ func main() {
if err != nil {
panic(err)
}
fo, err = os.Create(path.Join(*root, "abineundo/ref/custom/register.go"))
fo, err = os.Create(tgtf)
if err != nil {
panic(err)
}