Skip to content

Commit 43354aa

Browse files
committed
srn Modify default template to satisfy errcheck.
1 parent 663435f commit 43354aa

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

migrations.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,14 @@ import (
8383
)
8484
8585
func init() {
86-
registry.Register(
86+
err := registry.Register(
8787
"{{.Filename}}",
8888
up{{.FuncName}},
8989
down{{.FuncName}},
9090
)
91+
if err != nil {
92+
panic(err)
93+
}
9194
}
9295
9396
func up{{.FuncName}}(tx *pg.Tx) error {

0 commit comments

Comments
 (0)