mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2025-12-18 20:50:12 +08:00
fix: make lint happy
This commit is contained in:
parent
bc20d95bd1
commit
558c3ee482
@ -1,3 +1,4 @@
|
||||
// Package main generate necessary files that needed for compiling
|
||||
package main
|
||||
|
||||
import (
|
||||
@ -30,7 +31,7 @@ func main() {
|
||||
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)
|
||||
_ = os.WriteFile(tgtf, []byte("// Package custom ...\npackage custom\n"), 0644)
|
||||
return
|
||||
}
|
||||
panic(err)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user