Skip to content

Commit effb47a

Browse files
committed
Fix lint
1 parent 5e40518 commit effb47a

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

models/db/context.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ func (ctx *Context) Engine() Engine {
2121
return ctx.e
2222
}
2323

24+
// NewSession returns a new session
2425
func (ctx *Context) NewSession() *xorm.Session {
2526
e, ok := ctx.e.(*xorm.Engine)
2627
if ok {

models/db/engine.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,12 @@ type Engine interface {
7070
Cols(...string) *xorm.Session
7171
}
7272

73+
// TableInfo returns table's information via an object
7374
func TableInfo(v interface{}) (*schemas.Table, error) {
7475
return x.TableInfo(v)
7576
}
7677

78+
// DumpTables dump tables information
7779
func DumpTables(tables []*schemas.Table, w io.Writer, tp ...schemas.DBType) error {
7880
return x.DumpTables(tables, w, tp...)
7981
}

models/db/unit_tests.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ var (
3232
fixturesDir string
3333
)
3434

35+
// FixturesDir returns the fixture directory
3536
func FixturesDir() string {
3637
return fixturesDir
3738
}

0 commit comments

Comments
 (0)