Skip to content

Commit af64419

Browse files
committed
fix lint
1 parent 64afaed commit af64419

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

examples/basic/xorm/main.go

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import (
88

99
_ "github.com/lib/pq"
1010
_ "modernc.org/sqlite"
11-
1211
"xorm.io/builder"
1312
"xorm.io/xorm"
1413
xormLog "xorm.io/xorm/log"
@@ -72,13 +71,13 @@ func main() {
7271
}
7372

7473
func prepareScheme(db *xorm.Engine) error {
75-
if err := db.DropTables(&Series{}, &Seasons{}, &Episodes{}); err != nil {
76-
return err
77-
}
78-
if err := db.CreateTables(&Series{}, &Seasons{}, &Episodes{}); err != nil {
74+
err := db.DropTables(&Series{}, &Seasons{}, &Episodes{})
75+
if err != nil {
7976
return err
8077
}
81-
return nil
78+
79+
err = db.CreateTables(&Series{}, &Seasons{}, &Episodes{})
80+
return err
8281
}
8382

8483
func fillData(db *xorm.Engine) error {

0 commit comments

Comments
 (0)