Skip to content

Commit 9e5275c

Browse files
committed
Fix lint
1 parent effb47a commit 9e5275c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

models/db/engine.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ func DumpTables(tables []*schemas.Table, w io.Writer, tp ...schemas.DBType) erro
8080
return x.DumpTables(tables, w, tp...)
8181
}
8282

83-
// RegisterModels registers models
83+
// RegisterModel registers model, if initfunc provided, it will be invoked after data model sync
8484
func RegisterModel(bean interface{}, initFunc ...func() error) {
8585
tables = append(tables, bean)
8686
if len(initFuncs) > 0 && initFunc[0] != nil {

models/db/unit_tests.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ func whereConditions(sess *xorm.Session, conditions []interface{}) {
157157
}
158158
}
159159

160+
// LoadBeanIfExists loads beans from fixture database if exist
160161
func LoadBeanIfExists(bean interface{}, conditions ...interface{}) (bool, error) {
161162
return loadBeanIfExists(bean, conditions...)
162163
}

0 commit comments

Comments
 (0)