Skip to content

Commit bc20d95

Browse files
committed
fix: make lint&ci happy
1 parent 883adc6 commit bc20d95

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

abineundo/ref/main.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,10 @@ func main() {
2727
fo.Close()
2828

2929
regf := path.Join(*root, "custom/register.go")
30+
tgtf := path.Join(*root, "abineundo/ref/custom/register.go")
3031
if _, err := os.Stat(regf); err != nil {
3132
if os.IsNotExist(err) {
33+
_ = os.WriteFile(tgtf, []byte("package custom\n"), 0644)
3234
return
3335
}
3436
panic(err)
@@ -38,7 +40,7 @@ func main() {
3840
if err != nil {
3941
panic(err)
4042
}
41-
fo, err = os.Create(path.Join(*root, "abineundo/ref/custom/register.go"))
43+
fo, err = os.Create(tgtf)
4244
if err != nil {
4345
panic(err)
4446
}

0 commit comments

Comments
 (0)