make lint happy

This commit is contained in:
fumiama
2021-12-26 21:59:48 +08:00
parent 16624a9596
commit 3939e0760f
7 changed files with 29 additions and 64 deletions

View File

@@ -37,9 +37,8 @@ func Open(dbpath string) (*SleepDB, error) {
db, err := gorm.Open("sqlite3", dbpath)
if err != nil {
return nil, err
} else {
return (*SleepDB)(db), nil
}
return (*SleepDB)(db), nil
}
// Close 关闭