diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2016-11-28 15:25:16 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-28 15:25:16 +0800 |
commit | bf8d90c5cc6bea9ec4eeb2e827d10cd247043fe0 (patch) | |
tree | 56d9a9c17aa41c6e8439750819d93c839991da09 /models/models.go | |
parent | 25b5722155c0dc974239f862b3990b7423e28bfb (diff) | |
download | gitea-bf8d90c5cc6bea9ec4eeb2e827d10cd247043fe0.tar.gz gitea-bf8d90c5cc6bea9ec4eeb2e827d10cd247043fe0.zip |
golint fixed for models/models.go (#284)
Diffstat (limited to 'models/models.go')
-rw-r--r-- | models/models.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/models/models.go b/models/models.go index 0b02de54d4..bab04c661b 100644 --- a/models/models.go +++ b/models/models.go @@ -149,7 +149,7 @@ func getEngine() (*xorm.Engine, error) { } case "sqlite3": if !EnableSQLite3 { - return nil, errors.New("This binary version does not build support for SQLite3.") + return nil, errors.New("this binary version does not build support for SQLite3") } if err := os.MkdirAll(path.Dir(DbCfg.Path), os.ModePerm); err != nil { return nil, fmt.Errorf("Fail to create directories: %v", err) @@ -157,7 +157,7 @@ func getEngine() (*xorm.Engine, error) { connStr = "file:" + DbCfg.Path + "?cache=shared&mode=rwc" case "tidb": if !EnableTiDB { - return nil, errors.New("This binary version does not build support for TiDB.") + return nil, errors.New("this binary version does not build support for TiDB") } if err := os.MkdirAll(path.Dir(DbCfg.Path), os.ModePerm); err != nil { return nil, fmt.Errorf("Fail to create directories: %v", err) @@ -218,7 +218,7 @@ func NewEngine() (err error) { } if err = x.StoreEngine("InnoDB").Sync2(tables...); err != nil { - return fmt.Errorf("sync database struct error: %v\n", err) + return fmt.Errorf("sync database struct error: %v", err) } return nil |